9 months ago
12 lines337 B
age = 29 | |
height_m = 1.74 | |
name = "Sam" | |
is_student = True | |
| |
print(type(age), type(height_m), type(name), type(is_student)) | |
| |
# input() always gives you a string: convert it before doing maths | |
years = int(input("How many years from now? ")) | |
print(f"In {years} years {name} will be {age + years}.") | |
| |
# This is the version we use in the video. |