
Siva J. answered 09/25/21
Software Consultant and Computer Science Faculty
# Here you go. This is an exercise given out in the first class (Operators in python).
# take the input from user
celsius = float(input('Enter temperature in Celsius: '))
# calculate temperature in Fahrenheit
fahrenheit = (celsius * 1.8) + 32
# print the output
print('Temperature (C) : %0.1f ' %(celsius))
print('Temperature (F) : %0.1f ' %(fahrenheit))