0

Python Input goes wrong on SoloLearn?

Hey sololearners I’m a beginner and I have just written a random code for asking an user to enter a number to convert from degree Celsius to Fahrenheit and vise versa but it seems that the display of the input is not working on SoloLearn. Any experience on that?

1st May 2018, 1:47 AM
Abdul Kader Lougue
Abdul Kader Lougue - avatar
4 Answers
+ 6
Your code works fine for me. Remember in the SoloLearn playground ALL of your inputs must be entered at the same time. I.E. 1 20 yes 2 98 no
1st May 2018, 2:08 AM
ChaoticDawg
ChaoticDawg - avatar
+ 6
You can just append the .lower() method to input() input().lower() this will make the users input lower case so, Yes, yEs, YES, etc will all be changed to yes.
1st May 2018, 2:22 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Oh thank you so much
1st May 2018, 2:58 AM
Abdul Kader Lougue
Abdul Kader Lougue - avatar
0
Oh ok thank you Do you know how to ignore the case of “yes” or “ no” Because if the user enter YES instead of yes, the program will end Thank you again
1st May 2018, 2:17 AM
Abdul Kader Lougue
Abdul Kader Lougue - avatar