Python Forum
[ MATRIX - COOL - CALCULATOR ] Try it and let me know , how it's work ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ MATRIX - COOL - CALCULATOR ] Try it and let me know , how it's work ?
#1
#------------------------------------------------------------
# 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")
Reply
#2
Do you really want your phone number on a public forum?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(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 :)
Reply
#4
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020