-
Notifications
You must be signed in to change notification settings - Fork 1
/
unit3_ex3.4.4.py
40 lines (30 loc) · 1006 Bytes
/
unit3_ex3.4.4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# exercise 3.4.4 from unit
'''
A programmer wrote a plan to recreate the launch of the "Apollo 11" spacecraft.
The programmer forgot to write the code according to the spacing conventions
used in Python. You need to fix the code snippet.
Guidelines
Copy each line of code into the answer box below.
Add the necessary spaces to the given line of code.
Do not change/delete any characters (the only action allowed is adding spaces).
'''
LAUNCH_DATE="16/07/1969"
RETURN_DATE="24/07/1969"
astronaut="Neil"+"Armstrong"
days=how_many_days(LAUNCH_DATE‚RETURN_DATE)
astronaut.take_to_space(days)
# 1:
# LAUNCH_DATE="16/07/1969"
# Answer: LAUNCH_DATE = "16/07/1969"
# 2:
# RETURN_DATE="24/07/1969"
# Answer: RETURN_DATE = "24/07/1969"
# 3:
# astronaut="Neil"+"Armstrong"
# Answer: astronaut = "Neil" + "Armstrong"
# 4:
# days=how_many_days(LAUNCH_DATE‚RETURN_DATE)
# Answer: days = how_many_days(LAUNCH_DATE‚ RETURN_DATE)
# 5:
# astronaut.take_to_space(days)
# Answer: astronaut.take_to_space(days)