+ 1
How do you make comparisons between a user input variable and an integer
How plz help https://code.sololearn.com/cOZO4tYhFQKK/?ref=app
2 odpowiedzi
+ 4
Input return a string and you cant compare integer with string.
You just need to apply this fix.
num = int(input("rate your day on a scale of one to ten in numbers :"))
So you will transform the string in an integer and you will be able to compare.
+ 1
your a lifesaver thanks mate