I wrote a python script in Spyder and am trying to run it on my machine but Python 3.7 on windows closes it to early.
My code is:
print('Campus Pizza Ordering Program\n')
crust = input('What crust? Regular or Wheat? ')
num_toppings = int(input('How many toppings (please enter a whole number)? '))
price = format((7 + num_toppings * 0.75),".2f") #looked up how to round to 2 decimals
print('\nYou have a '+crust+' pizza with '+str(num_toppings)+' toppings. ' +
'The final price of the pizza is $'+str(price)+".")
The program closes though before the final print statement is executed. Why?