8th Apr 2019, 3:07 AM
Aditya
5 Respuestas
+ 4
The problem is sololearn takes input ahead of time and your progam requires infinite input so it won't work...Another thing you have to convert your number and user input to an int for the intended comparison And also check your program once it is an infinite loop ,i dunno if it's intentional
8th Apr 2019, 4:11 AM
Saksham Jain
Saksham Jain - avatar
+ 4
Aditya you can compare a string to string but see in string >,< are different i.e '5'>'45' will result in True.....Check this on python interpreter
8th Apr 2019, 8:40 AM
Saksham Jain
Saksham Jain - avatar
+ 2
Aditya If my answer helped you mark it as best answer by ticking the check mark button
8th Apr 2019, 8:49 AM
Saksham Jain
Saksham Jain - avatar
+ 1
What you are saying is I can't compare a string to string and if the input is given false then what will be the answer? ?
8th Apr 2019, 8:37 AM
Aditya
0
Thankyou for answering my question bro
8th Apr 2019, 8:45 AM
Aditya