Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- mybruvman = True
- am = 0
- eq = 0
- while mybruvman:
- print("Calculator")
- print ('HELP, in CAPS, to display all operations and commands\n\n')
- eq = input('Enter your operation: ')
- if eq == 'HELP':
- print('THE OPERATIONS YOU CAN USE ARE: ')
- print('add')
- print('subtract')
- print('multiply')
- print('divide')
- print('percentage of score - enter the number of total points and then the number of correct points')
- print('make sure to use lowercase\n\n')
- elif eq == 'add':
- am = input('how many numbers would you like to add? MAX 10: ')
- if am == 'two':
- num1 = input('Enter your first number: ')
- num2 = input('Enter your second number')
- result = float(num1) + float(num2)
- print(result)
- if eq == 'add':
- else:
- print('wrong operation or command try again\n')
- eq = 0
- am = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement