diff --git a/p1.py b/p1.py new file mode 100644 index 0000000..a7f3cd6 --- /dev/null +++ b/p1.py @@ -0,0 +1,7 @@ + +from datetime import date +name = input("Enter your name: ") # user input +current_age = int(input("Enter your age: ")) # user input +#calculating the 100th year, considering 2020 as the current year +hundredth_year = 2022 + (100 - current_age) +print(f'{name} will become 100 years old in the year {hundredth_year}.')