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