Update my_first_calculator.py

This commit is contained in:
Abdullah403 2020-10-01 10:50:27 +05:30 committed by GitHub
parent a7aabeaf49
commit 9864dca858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,9 @@
if 3/2 == 1: # Because Python 2 does not know maths
input = raw_input # Python 2 compatibility
print('Welcome to this calculator!')
a ='Welcome to this calculator'
print(a.center(60))
print('It can add, subtract, multiply and divide whole numbers from 0 to 50')
num1 = int(input('Please choose your first number: '))
sign = input('What do you want to do? +, -, /, or *: ')