Repository navigation
Expand file tree
/
Copy pathname_age.py
More file actions
49 lines (34 loc) · 1.55 KB
/
Copy pathname_age.py
File metadata and controls
49 lines (34 loc) · 1.55 KB
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
40
41
42
43
44
45
46
47
48
49
"""TODO: Replace with a one-line summary of the program's purpose (<73 chars).
Input:
TODO: Replace with a major input, including its type and source.
TODO: Replace with another major input, or delete this TODO line.
TODO: Replace with another major input, or delete this TODO line.
Process:
TODO: Replace with a major processing step.
Output:
TODO: Replace with a major output, including its type and destination.
Typical usage example:
TODO: Replace with the input prompt and original name-input example.
TODO: Replace with the input prompt and original age-input example.
TODO: Replace with the resulting output from those inputs.
"""
# === Imports ===
from datetime import date
# === Constants ===
CURRENT_YEAR = date.today().year # Get current year from system as integer
# === Main Function ===
def main() -> None:
"""Run the name-age program."""
# Get user input.
# TODO: Replace with code to get user's name as a string. See zyBooks 1.3.
# TODO: Replace with code to get user's age as an integer. See zyBooks 2.6.
# Calculate user's approximate birth year.
# TODO: Replace with code to process data. See zyBooks 1.16 & 1.17.
# Output personalized message with user's name and birth year.
# TODO: Replace with code to output formatted results. zyBooks 1.3 & 2.7.
# === Main Guard ===
if __name__ == "__main__":
main()
# === References ===
# TODO: Replace with an APA-style reference for a source you used, or delete.
# TODO: Replace with another APA-style reference, or delete this TODO line.