Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #Coded By: Love Hecate
- import time
- try:
- while True:
- option = raw_input("Type?: ")
- if option == "addition":
- a = input ("first number: ")
- b = input ("second number: ")
- done = str (a + b)
- print ("\n")
- print ("The Answer is: " ""+done+"")
- break
- elif option == "subtraction":
- c = input ("first number: ")
- d = input ("second number: ")
- done = str (c - d)
- print ("\n")
- print ("The Answer is: " ""+done+"")
- break
- elif option == "floordivision":
- e = input ("Enter First Number: ")
- f = input ("Enter Second Number: ")
- done = str (e // f)
- print ("\n")
- print ("The Answer is: " ""+done+"")
- break
- elif option == "modulo":
- g = input ("Enter First Number: ")
- h = input ("Enter Second Number: ")
- done = str (g % h)
- print ("\n")
- print ("The Answer is: " ""+done+"")
- break
- elif option == "division":
- i = input ("Enter First Number: ")
- j = input ("Enter Second Number: ")
- done = str (i / j)
- print ("\n")
- print ("The Answer is: " ""+done+"")
- break
- elif option == ("timer"):
- print ("CTRL + C TO EXIT")
- i = 1
- while i <=60:
- print(i)
- time.sleep (1)
- i = i + 1
- print ("Stop Watch Coded By: Love Hecate")
- else:
- print ("Invalid Option")
- print ("Usage: addition, subtraction, floordivision, modulo, division, timer")
- except KeyboardInterrupt:
- print ("\n")
- print ("\x1b[1;35m _ (^) ")
- print (" (_\ |_| ")
- print (" \_\ |_| ")
- print (" _\_\,/_| ")
- print (" (`\(_|`\| ")
- print (" (`\,) \ \' ")
- print (" \,) | | ")
- print (" \__(__|\x1b[0m ")
- print ("Wow... You're a slut whatever BYE!")
- print ("\n ")
Advertisement
Add Comment
Please, Sign In to add comment