Calculator 1.0 - TSHIRTS

calculator DARK wbg.jpg
calculator LIGHT wbg.jpg
Anvil_420_Black_Front_High ZOOM.jpg
Hes res SS menb.jpg
mockup_Front_Black.png
mockup_Back_Black.png
mockup_Front_Navy.png
Hes res SS men b.jpg
mockup_Back_Navy.png
mockup_Front_Charcoal.png
Hes res SS men grey.jpg
mockup_Back_Charcoal.png
python---calculator-LIGHT_mockup_Front_White.png
Hes res SS men.jpg
python---calculator-LIGHT_mockup_Back_White.png
calculator-LS_mockup_Flat-Front_Black.png
calculator-LS_mockup_Flat-Back_Black.png
calculator-LS_mockup_Flat-Front_Navy.png
calculator-LS_mockup_Flat-Back_Navy.png
calculator-LS_mockup_Flat-Front_Asphalt.png
calculator-LS_mockup_Flat-Back_Asphalt.png
Calc-LS-LIGHT_mockup_Flat-Front_White.png
Calc-LS-LIGHT_mockup_Flat-Back_White.png
mockup_Front_Navy.png
T-male-back.png
T-male-front.png
calculator DARK wbg.jpg
calculator LIGHT wbg.jpg
Anvil_420_Black_Front_High ZOOM.jpg
Hes res SS menb.jpg
mockup_Front_Black.png
mockup_Back_Black.png
mockup_Front_Navy.png
Hes res SS men b.jpg
mockup_Back_Navy.png
mockup_Front_Charcoal.png
Hes res SS men grey.jpg
mockup_Back_Charcoal.png
python---calculator-LIGHT_mockup_Front_White.png
Hes res SS men.jpg
python---calculator-LIGHT_mockup_Back_White.png
calculator-LS_mockup_Flat-Front_Black.png
calculator-LS_mockup_Flat-Back_Black.png
calculator-LS_mockup_Flat-Front_Navy.png
calculator-LS_mockup_Flat-Back_Navy.png
calculator-LS_mockup_Flat-Front_Asphalt.png
calculator-LS_mockup_Flat-Back_Asphalt.png
Calc-LS-LIGHT_mockup_Flat-Front_White.png
Calc-LS-LIGHT_mockup_Flat-Back_White.png
mockup_Front_Navy.png
T-male-back.png
T-male-front.png

Calculator 1.0 - TSHIRTS

79.00

This classic code to build a calculator in Python has transcended decades of computer science education. There's barely a python enthusiast who hasn't built a calculator in python at some stage!

CODE:

#BUILD A CALCULATOR 

from random import choice

def add(x, y):
   return x + y

def subtract(x, y):
   return x - y

def multiply(x, y):
   return x * y

def divide(x, y):
   return x / y
   
def main():
    print("Select operation.")
    print("1.Add")
    print("2.Subtract")
    print("3.Multiply")
    print("4.Divide")
    
    choice = input("Enter choice(1/2/3/4):")
    print(choice)
    
    num1 = int(input("Enter first number: "))
    num2 = int(input("Enter second number: "))
    
    if choice == 1:
       print(num1,"+",num2,"=", add(num1,num2))
    
    elif choice == 2:
       print(num1,"-",num2,"=", subtract(num1,num2))
    
    elif choice == 3:
       print(num1,"*",num2,"=", multiply(num1,num2))
    
    elif choice == 4:
       print(num1,"/",num2,"=", divide(num1,num2))
    else:
       print("Invalid input")
main()

SIZE:
COLOUR:
ITEM:
Quantity:
Add To Cart

All Syntaxd products are printed and shipped world-wide from a state-of-the-art facility in California, USA.

We use super-high res printing files to ensure graphics are super crisp and clean! 

Our ultra-premium short-sleeve T-shirts feature the following for ultimate comfort: 

  • 100% certified organic soft-spun cotton

  • Pre-shrunk

  • Seamless collar

  • Double-needle sleeve and bottom hem

  • Shoulder-to-shoulder tape and seamed collar

  • Tubular construction

  • Fabric weight 4.3 oz/yd²


Our ultra-premium long-sleeve T-shirts feature the following for ultimate comfort: 

  • 100% certified organic soft-spun cotton

  • Long sleeves

  • Cuffed hands

  • Durable ribbed neckband

  • Double stitched

  • Fabric weight 5.0 oz/yd²