0
How to add "your number is" before the answer,i tried but it show syntax error
print("This is my simple calculator") print("Enter your first number") x = int(input()) print("chose your operation(1,2,3 or 4)") print("1.Addition") print("2.Subtraction") print("3.Multiplication") print("4.Divition") choice = input() print("Enter your second number") y = int(input()) if choice == "1": print(x+y) elif choice =="2": print (x-y) elif choice == "3": print (x*y) elif choice == "4": print (x/y)
1 Resposta
+ 7
Before your if else statements, add:
print('Your number is : ', end='')