Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print(cool)
- loop = True
- while True:
- yn = input('2 or 3 Numbers: ')
- if yn == '2':
- asmd = input('What would you like to do Add Subtract Multiply Or Divide? ')
- if asmd == 'Add':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please: '))
- print(a+b)
- elif asmd == 'Subtract':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please: '))
- print(a-b)
- elif asmd == 'Multiply':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please: '))
- print(a*b)
- elif asmd == 'Divide':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please: '))
- print(a/b)
- else:
- print('That is not a choice.')
- elif yn == '3':
- asmd = input('What would you like to do Add Subtract Multiply Or Divide? ')
- if asmd == 'Add':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please: '))
- c = 1
- c = int(input('Third Number Please: '))
- print(a+b+c)
- elif asmd == 'Subtract':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please:' ))
- c = 1
- c = int(input('Third Number Please: '))
- print(a-b-c)
- elif asmd == 'Multiply':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please: '))
- c = 1
- c = int(input('Third Number Please: '))
- print(a*b*c)
- elif asmd == 'Divide':
- a = 1
- a = int(input('First Number Please: '))
- b = 1
- b = int(input('Second Number Please: '))
- c = 1
- c = int(input('Third Number Please: '))
- print(a/b/c)
- else:
- print('That is not a choice.')
- else:
- print('That is not a choice.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement