Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to limited arithmetic")
- print("Today we will addd, deevide, subtract, and mulchiply")
- calculations = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
- fourth_wall = input("Please select a number to perform math: ")
- fifths_wall = input("Please select a second number to perform math: ")
- calculations.append(fourth_wall)
- calculations.append(fifths_wall)
- print("here's your updated calculator: ", calculations)
- print("")
- sum = float(fourth_wall) + float(fifths_wall)
- differece = float(fourth_wall) - float(fifths_wall)
- differece2 = float(fifths_wall) - float(fourth_wall)
- sum2 = float(fifths_wall) + float(fourth_wall)
- product1 = float(fourth_wall) * float(fifths_wall)
- product2 = float(fifths_wall) * float(fourth_wall)
- divijion = float(fifths_wall) / float(fourth_wall)
- division2 = float(fourth_wall) / float(fifths_wall)
- print("This is the additions: ", sum, sum2)
- print("This is the subtractions: ", differece, differece2)
- print("This is the products: ", product1, product2)
- print("This is the devisions: ", divijion, division2)
- print("Thank you for using my calculator!")
- print("return 0;")
Advertisement
Add Comment
Please, Sign In to add comment