How do I solve my first python program -


this question has answer here:

i rookie in programing, needs codes!

i can't run following program correctly, type error want know why doesn't work. thank in advance!

def main():   celsius = input("celsius: ")   farhrenheit = (celsius * ( 9/5 ) + 32)   print (farhrenheit) main() 

it pomps out this:

typeerror: can't multiply sequence non-int of type 'float'

add float function.

celsius = float(input("celsius: ")) 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -