How do I solve my first python program -
this question has answer here:
- how can read inputs integers? 14 answers
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
Post a Comment