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))

made a calculator in python
0 Kudos
Comments
Displaying 0 of 0 comments ( View all | Add Comment )