I created a program that asks a bunch of input questions and prints out the following line, for example, Marc Gibbons is a 103 year old male. He was born in Ottawa and his SIN # is 1234567890.
But when I keep getting an error.
from datetime import datetime
def main():
name = input('Please enter your name:')
sex = input('Please enter your sex, Male (M) or Female (F) or Non-Binanry(N):')
birthday = input ('Enter your date of birth in YYYY-mm-dd format:')
birthday1 = datetime.strptime(birthday, '%Y-%m-%d')
age = ((datetime.today() - birthday1).days/365)
place = input('What City were you born in:')
try:
sin = int(input('What is your sin number:'))
except ValueError:
print('Error:Please enter a number')
print(f'{name} is a {age} years old {sex}. He was born in {place} and her SIN # is {sin}')
# Do not edit below
if __name__ == '__main__': main()

main()function?print(f"...")aftersin = ...