seed: curriculum content
This commit is contained in:
19
1.solar-system/3.strings/07.the-report/starter/starter.py
Normal file
19
1.solar-system/3.strings/07.the-report/starter/starter.py
Normal file
@@ -0,0 +1,19 @@
|
||||
def format_report(name, status, location, time):
|
||||
"""Return a formatted mission report as a single string.
|
||||
|
||||
The report is 8 lines, joined by '\n'. The borders are 30 equals
|
||||
signs ("=" * 30). Only the name is uppercased; other fields are
|
||||
inserted as-is.
|
||||
|
||||
format_report("apollo", "ok", "moon", "13:32") returns:
|
||||
|
||||
==============================
|
||||
MISSION REPORT
|
||||
==============================
|
||||
Name: APOLLO
|
||||
Status: ok
|
||||
Location: moon
|
||||
Time: 13:32
|
||||
==============================
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user