Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import time
- print (" >>OPTIONS<<")
- print (" _ _ _ [1] Subtraction")
- print (" ___ __ _| | ___ _ _| | __ _| |_ ___ _ __ [2] Addition")
- print (" / __/ _` | |/ __| | | | |/ _` | __/ _ \| '__|[3] Floor Division")
- print ("| (_| (_| | | (__| |_| | | (_| | || (_) | | [4] Modulo")
- print (" \___\__,_|_|\___|\__,_|_|\__,_|\__\___/|_| [5] Division")
- print (" [6] 60s Timer")
- option = input("Enter Option: ")
- if option == 1:
- a = input ("Enter First Number: ")
- b = input ("Enter Second Number: ")
- print (a - b)
- print ("Calculator Coded By: Love Hecate")
- elif option == 2:
- c = input ("Enter First Number: ")
- d = input ("Enter Second Number: ")
- print (c + d)
- print ("Calculator Coded By: Love Hecate")
- elif option == 3:
- e = input ("Enter First Number: ")
- f = input ("Enter Second Number: ")
- print (e // f)
- print ("Calculator Coded By: Love Hecate")
- elif option == 4:
- g = input ("Enter First Number: ")
- h = input ("Enter Second Number: ")
- print (g % h)
- print ("Calculator Coded By: Love Hecate")
- elif option == 5:
- i = input ("Enter First Number: ")
- j = input ("Enter Second Number: ")
- print (i / j)
- print ("Calculator Coded By: Love Hecate")
- elif option == 6:
- print ("CTRL + C To Exit !")
- try:
- i = 1
- while i <=60:
- print(i)
- time.sleep (1)
- i = i + 1
- print ("Stop Watch Coded By: Love Hecate")
- except KeyboardInterrupt:
- print("\nBye!")
Advertisement
Add Comment
Please, Sign In to add comment