Python Forum

Full Version: [ MATRIX - COOL - CALCULATOR ] Try it and let me know , how it's work ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
#------------------------------------------------------------
# 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")
Do you really want your phone number on a public forum?
(Jun-13-2020, 02:59 PM)buran Wrote: [ -> ]Do you really want your phone number on a public forum?

Soory sir my mistake
I Created this Script for Termux , but I uploaded it on forum without taking a look

By the way Thanks sir :)
You don"t have to comment on everything, it makes the file bigger especially if you are working on a big project only comment on things that would be unclear to someone who DOES program in python cuz that who will be looking at the code.