+ 2

What I'm doing wrong here

using input() my if condition not satisfied but when i declare a variable that time it works. anyone please let me know why this happen https://code.sololearn.com/cBja1iqt9ed4/?ref=app

10th Sep 2018, 11:05 AM
Nilesh
6 Réponses
+ 6
https://code.sololearn.com/cIKIKrcilrVU/?ref=app
10th Sep 2018, 11:36 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
Please specify the errors that you are getting... I'm not omniscient or telepathic.
10th Sep 2018, 11:54 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
On line 9, convert input to int. int(input()) On line 13, convert rollno to str. str(rollno)
10th Sep 2018, 11:27 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
I have already checked this but not worked
10th Sep 2018, 11:35 AM
Nilesh
+ 1
Hi Hatsy, I have made the changes as suggested by you and it works on this app but not worked on my python IDLE 3.5.2. Would you please let me know how can I fix it on IDLE too?
10th Sep 2018, 11:47 AM
Nilesh
+ 1
Hey Hatsy, Sorry, for confusion. I have made one silly mistake. Now I fixed that and your suggestion is working now. Thanks a lot.
10th Sep 2018, 12:15 PM
Nilesh