New course! Every coder should learn Generative AI!
Try a free lesson0
What is the problem with this code??Not getting proper output
2 Answers
+ 3
input() returns a string. convert it to integer (or float).
x = float(input())
You'll need to do this conversation for other input in your code.
+ 2
Thanks