Ask coding questions

← Back to all posts
How to let console accept decimal numbers in python coding?
JW2005 (0)

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

Answered by VulcanWM (2912) [earned 5 cycles]
View Answer
Comments
hotnewtop
VulcanWM (2912)

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

JW2005 (0)

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

VulcanWM (2912)

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

JW2005 (0)

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

VulcanWM (2912)

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

InvisibleOne (3227)

I didn't get any errors

JW2005 (0)

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