Jun-13-2020, 02:53 PM
#------------------------------------------------------------ # Trying again { After last script deleted by mistake } | # | # Date : 13 - june - 2020 | # | # Time : 6 : 00 pm ( approaximatly ) | # | #------------------------------------------------------------ #-------------- # About coder | #-------------- # Name : Matrix # Age : 19 # from : Pakistan #-------------- # Contacts | #-------------- # Github : https://github.com/Matrix-jailer # Facebook : https://www.facebook.com/profile.php?id=100050456165047 # Whatsapp : [ INVALID ] # ENJOY MATRIX CALCULATOR :-) # Imported " time " import time # Script starting template print("\n") print(" ░█▄▒▄█▒▄▀▄░▀█▀▒█▀▄░█░▀▄▀ ") print(" ░█▒▀▒█░█▀█░▒█▒░█▀▄░█░█▒█ ") print("\n") # User will put his/her name user = input("Your name: ") # This statment will give a gape between lines print("\n") # Here come one second delay time.sleep(1) # " def " function will work after user put his/her name def name_1(user): print("Hello " + user) # User name style templete print("+ - × ÷ + - × ÷ ") # This statment will give a gape between lines print("\n") # Here come one second delay time.sleep(1) # Now script say hello to " user " name_1(user) # Here come one second delay time.sleep(1) # This statment will give a gape between lines print("\n") # User name style templete print("+ - × ÷ + - × ÷ ") # This statment will give a gape between lines print("\n") # Here come one second delay time.sleep(1) # This statment will give a gape between lines print("\n") # Calculater template print("[- " "+ " "Calculator " "* " "/]") print(" v - 0.5 ") # This statment will give a gape between lines print("\n") # User need to input " first number " num1 = float(input("Enter your first number: ")) # This statment will give a gape between lines print("\n") # Here come one second delay time.sleep(1) # User need to input " opreater " op = input("Enter your opreater: ") # This statment will give a gape between lines print("\n") # Here come one second delay time.sleep(1) # User need to input " second number " num2 = float(input("Enter your second number: ")) # This statment will give a gape between lines print("\n") # " if " statment for opreater if op == "+": print("Answer: "+ str( num1 + num2)) print("\n") print(" ░█▄▒▄█▒▄▀▄░▀█▀▒█▀▄░█░▀▄▀ ") print(" ░█▒▀▒█░█▀█░▒█▒░█▀▄░█░█▒█ ") print("\n") # " elif " statment for opreater elif op == "-": print("Answer: "+ str( num1 - num2)) print("\n") print(" ░█▄▒▄█▒▄▀▄░▀█▀▒█▀▄░█░▀▄▀ ") print(" ░█▒▀▒█░█▀█░▒█▒░█▀▄░█░█▒█ ") print("\n") # " elif " statment for opreater elif op == "*": print("Answer: "+ str( num1 * num2)) print("\n") print(" ░█▄▒▄█▒▄▀▄░▀█▀▒█▀▄░█░▀▄▀ ") print(" ░█▒▀▒█░█▀█░▒█▒░█▀▄░█░█▒█ ") print("\n") # " elif " statment for opreater elif op == "/": print("Answer: "+ str( num1 / num2)) print("\n") print(" ░█▄▒▄█▒▄▀▄░▀█▀▒█▀▄░█░▀▄▀ ") print(" ░█▒▀▒█░█▀█░▒█▒░█▀▄░█░█▒█ ") print("\n") # in the end " else " statment for opreater else: print(" Invalid Opreater ") print("\n") print(" ░█▄▒▄█▒▄▀▄░▀█▀▒█▀▄░█░▀▄▀ ") print(" ░█▒▀▒█░█▀█░▒█▒░█▀▄░█░█▒█ ") print("\n")