Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = eval(input('enter x: '))
- y = eval(input('enter y: '))
- op = input('+,-,*,/ ?: ')
- if(op == '+'):
- ans = x + y
- if(op == '-'):
- ans = x - y
- if(op == '*'):
- ans = x * y
- if(op == '/'):
- ans = x / y
- print(f'Answr is {ans}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement