I have coded a temperature converter from Celsius to Fahrenheit. When I run the program from my desktop, it asks for my input then quickly closes when I pass an integer to it. Is there a way to keep it open to view the results?
user_input_celsius = input('Enter temp in Celsius ')
user_input_celsius = int(user_input_celsius)
celsius_values = []
celsius_values = celsius_values + [user_input_celsius]
fahrenheit_values = []
for celsius in celsius_values:
fahrenheit = celsius * 1.8 + 32
fahrenheit_values = fahrenheit_values + [fahrenheit]
print(fahrenheit_values, end ='')