#Exercise 1.3 from Langtangen's book seconds = 1.0e9 minutes = seconds/60 hours = minutes/60 days = hours/24 years = days/365 print(f'{seconds:g} is {years:g} years') """ About the f-string formatting: The :g inside the brackets is a format specifier, which ensures that the result is written on a compact form. See chapter 2 in the book for other format specifiers. """ #Always include an example like this ("kj?reeksempel") in mandatory assignments: """ Terminal> python seconds2years.py 1e+09 is 31.7098 years """