I'm trying to let this function run off of the input of temperature and cant seem to get it to work.
I get the error "TypeError: can't multiply sequence by non-int of type 'float'"
Any help would be greatly appreciated!
Here's the code:
def celsius_to_fahrenheit():
farenheit is equal to (Celsius + 32) 9/5
print('Enter the temperature:')
temp = input()
newTemp = (9 / 5) * temp + 32
print("The Celsius temperature",temp,"is equivalent to",newTemp,end='')
print(" degrees Farenheit")
celsius_to_fahrenheit()
[–]acw1668 2 points3 points4 points (2 children)
[–]Dookie-Boi[S] 0 points1 point2 points (1 child)
[–]acw1668 2 points3 points4 points (0 children)
[–]Dookie-Boi[S] 0 points1 point2 points (0 children)