SHARE
TWEET

to be continued

daniel10096783 Oct 21st, 2019 (edited) 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2. mybruvman = True
  3. am = 0
  4. eq = 0
  5.  
  6. while mybruvman:
  7.  print("Calculator")
  8.  print ('HELP, in CAPS, to display all operations and commands\n\n')
  9.  eq = input('Enter your operation: ')
  10.  
  11.  if eq == 'HELP':
  12.     print('THE OPERATIONS YOU CAN USE ARE: ')
  13.  
  14.     print('add')
  15.  
  16.     print('subtract')
  17.  
  18.     print('multiply')
  19.  
  20.     print('divide')
  21.  
  22.     print('percentage of score - enter the number of total points and then the number of correct points')
  23.  
  24.     print('make sure to use lowercase\n\n')    
  25.  
  26.  elif eq == 'add':
  27.    am = input('how many numbers would you like to add? MAX 10: ')
  28.    if am == 'two':
  29.       num1 = input('Enter your first number: ')
  30.       num2 = input('Enter your second number')
  31.       result = float(num1) + float(num2)
  32.       print(result)
  33.  
  34.  
  35.   if eq == 'add':
  36.    
  37.  else:
  38.    print('wrong operation or command try again\n')
  39.  
  40.  
  41.  eq = 0
  42.  am = 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top