Why it doesn't work??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why it doesn't work???

Second input doesn't work https://code.sololearn.com/cnwT966sU7Y8/?ref=app

7th May 2022, 3:33 PM
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™ - avatar
2 Answers
+ 6
™Ꭰᥲʀκ͢☢Ӄᴎ͟͞ɪ͟͞ԍ͟͞ʜ͟͞ᴛ]™ , you should use only one if... elif... .... else... statement, and all of them have to be on the same indentation level to the very left position. it would also be more logic to start with: if x<18.5: also check all conditions if they match the defined requirement from the task description.
7th May 2022, 3:43 PM
Lothar
Lothar - avatar
+ 1
Maybe it works if you unindent the second if, the elif and the else. The second input works but at Sololearn you do all your input in one go (on seperate lines).
7th May 2022, 3:40 PM
Paul
Paul - avatar