-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path12. review.py
More file actions
20 lines (15 loc) · 732 Bytes
/
12. review.py
File metadata and controls
20 lines (15 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Write your code below:
def trip_planner_welcome(name):
print("Welcome to tripplanner v1.0 " + name)
def destination_setup(origin, destination, estimated_time, mode_of_transport="Car"):
print("Your trip starts off in " + origin)
print("And you are traveling to " + destination)
print("You will be traveling by " + mode_of_transport)
print("It will take approximately " + str(estimated_time) + " hours")
def estimated_time_rounded(estimated_time):
rounded_time = round(estimated_time)
return rounded_time
# Comment these in in the last step
# trip_planner_welcome(" <YOUR NAME HERE> ")
# estimate = estimated_time_rounded(2.43)
# destination_setup(" <PICK A ORIGIN> ", "<PICK A DESTINATION > ", estimate, "Car")