why is there a syntax error here and what is a syntax error
inp= input('select a mode as (calculator, game, or time)') calculator ={ #syntax error here > x = str(input('Please choose add, subtract, divide, or multiply, then choose 2 numbers')) add ={ z = int(input()) y = int(input()) print(z + y) } subtract ={ z = int(input()) y = int(input()) print(z - y) } divide ={ z = int(input()) y = int(input()) print(z / y) } multiply ={ z = int(input()) y = int(input()) print(z * y) } if x=='add': add if x=='subtract': subtract if x=='divide': divide if x=='multiply': multiply } game ={ import random a = random.choice(1, 10) x = int(input('Enter a number between 1 and 10')) if x==a: print('you got it right! The number was:', a) if x!=a: print('Sorry , you got it wrong. The number was: ', a) } time ={ import time as t a = t.now() print(a) } #################################################### if inp=='calculator': calculator if inp=='game': game if inp=='time': time else: print('Something went wrong. Please choose between calcultor, game, and time')