- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.py
More file actions
Latest commit
24 lines (18 loc) · 511 Bytes
/
Copy pathfunction.py
File metadata and controls
24 lines (18 loc) · 511 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!usr/bin/env python
#import modules used here - sys is a very standard one
importsys
defreport_status(scheduled_time, estimated_time):
# report_status(14.3, 14.3)
# 'On time'
# report_status(12.5, 11.5)
# 'early'
# report_status(9.0, 9.5)
# 'delayed'
ifscheduled_time==estimated_time:
print("On time")
elifscheduled_time>estimated_time:
print("Early")
else:
print("Delayed")
if__name__=='__main__':
report_status (12.5, 12.5)