Skip to content
← Back to Community
How to let console accept decimal numbers in python coding?
Profile icon
JW2005

Need some keyword or coding that can make the last part work. I dont know where did i got it wrong. HELP!!!!!

python problem (bmi calculator)

Answered by VulcanWM [earned 5 cycles]
View Answer
Voters
Profile icon
JW2005
Comments
hotnewtop
Profile icon
VulcanWM

for the decimal inputs, do float(input("Enter decimal number"))

Profile icon
JW2005

@VulcanWM thanks... I got it...

Profile icon
VulcanWM

ayy nice, pls mark the comment as the answer :) @JW2005

Profile icon
JW2005

@VulcanWM I just started to use this 3 days ago n I didn't know that we have this feature. Thx for reminding

Profile icon
VulcanWM
Profile icon
VulcanWM

You have just press the tick underneath my comment to mark it as the answer @JW2005

Profile icon
InvisibleOne

I didn't get any errors

Profile icon
JW2005
Profile icon
JW2005

@InvisibleOne cuz I mended it and I added some features to it. Hope u guys can like it.