i use pycharm since yt said it was the best for beginners. but when i try to combine the adding and subtracting options it fails
my code:
print('you can choose between 4 options: '
'adding: 1, '
'substraction: 2, , '
'division: 3, '
'multiplication: 4')
form = int(input('choose an option: '))
if form == 1: num1 = input('choose a number: ')
num2 = input('choose another one: ')
result = float(num1) + float(num2)
print(result)
if (form == 2): num3 = input('choose a number: ')
num4 = input('choose another one: ')
result = float(num3) - float(num4)
print(result)
keeps saying num1 or num 3 is undefined but what does that mean?
