I have encoded a basic calculator in python 3.3 and I want to be able to run it in a command window.
but as soon as I get to the end, he closes the windows before I have time to look at the final answer.
so I was wondering if there is an equivalent to the C ++ System ("PAUSE") command, to say that it does not advance further until the user is ready.
Here is my calculator code:
print('Your Very Own Basic Calculator')
first_num = int(input('Please Enter The First Number: '))
second_num = int(input('Please Enter The Second Number: '))
Equation = input('What would you like to do, multiplication, division, subtraction or
if Equation == ('*'):
addition? *, /, -, +')
print('The Answer is',first_num * second_num)
elif Equation == ("/"):
print('The Answer is',first_num / second_num)
elif Equation == ('-'):
print('The Answer is',first_num - second_num)
elif Equation == ('+'):
print('The Answer is',first_num + second_num)
thank
Maxxb source
share