_SümDeV_'s profile picture

Published by

published
updated

Category: Web, HTML, Tech

made a calculator in python

x = input("Type a number: ")
z = input("type a sign: ")
y = input("Type another number: ")
if (z) == ('+'):
    print( int(x) + int(y))
if (z) == ('-'):
    print(int(x) - int(y))
if (z) == ('/'):
    print(int(x) / int(y))
if (z) == ('*'):
    print(int(x) * int(y))


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )