0
What is the bug in it
It is showing typeerror > can not be used with string or float
6 Answers
+ 1
Line 1:
Change to a=int(input())
+ 1
If you want to allow your users to enter decimals, use float(input ()). If you only want to allow them to enter integers, use int(input()).
+ 1
If you want to print a message if the user causes a ValueError exception by a bad input, you will need to handle the exception with try/except https://www.sololearn.com/learning/2441/
0
Please provide your code.
0
Ok