Skip to content

Instantly share code, notes, and snippets.

View Pablonara's full-sized avatar

Pablonara

  • BC, Canada + SF
View GitHub Profile
from random import randint
import math
while True:
input1 = input("Enter a line of calculations to do (e.g. 1+3+5-3, 5*7/3+4, 5^7) \n alternatively type sin, cos or tan : ")
if input1 == "random":
try:
print(randint(int(input("Enter the minimum number: ")), int(input("Enter the maximum number: "))))
except:
print("Invalid input. Please try again.")
elif input1 == "sin":