Says 'second_num_one' is invalid syntax

python

#1

def menu():
print("Do you want do do multiplication or division? Press 1 for multiplication, and press 2 for divison:")
choice = int(input("Do you want do do multiplication or division? Press 1 for multiplication, and press 2 for divison:"))
if choice == 1:
first_num_one = int(input("Pick a number:")
second_num_one = int(input("Pick another number:")
elif choice == 2:
first_num_two = int(input("Pick a number:")
second_num_two = int(input("Pick another number:")
else:
menu()

Don't know why, but it says 'second_num_one' is invalid syntax, even though it's a variable

Please help me!


#2

@12wheelerd this is your code below and I have commented on where the mistakes were

def menu():
    print("Do you want do do multiplication or division? Press 1 for multiplication, and press 2 for divison:")
    choice = int(input("Do you want do do multiplication or division? Press 1 for multiplication, and press 2 for divison:"))
    if choice == 1:
        first_num_one = int(input("Pick a number:"))#close parenthesis
        second_num_one = int(input("Pick another number:"))#close parenthesis
        #return first_num_one*second_num_one
    elif choice == 2:
        first_num_two = int(input("Pick a number:"))#close parenthesis
        second_num_two = int(input("Pick another number:"))#close parenthesis
        #return first_num_one/second_num_one
    else:
        menu()
        
print (menu())