+ 1

Why does this code print the block in the else statement when it's right

https://code.sololearn.com/cupcWVDzMbU7/?ref=app

14th Apr 2022, 1:54 PM
b̶l̶a̶n̶k̶
b̶l̶a̶n̶k̶ - avatar
6 Answers
+ 2
May you are testing with wrong input.. It's working fine..
14th Apr 2022, 1:56 PM
Jayakrishna 🇮🇳
+ 1
5 1 8 2 4 9 only the above line, Copy and paste as input, run, and see output...
14th Apr 2022, 2:04 PM
Jayakrishna 🇮🇳
0
No but, how can I run the if statement when the input is right
14th Apr 2022, 1:59 PM
b̶l̶a̶n̶k̶
b̶l̶a̶n̶k̶ - avatar
0
Oh oke sorry
14th Apr 2022, 2:05 PM
b̶l̶a̶n̶k̶
b̶l̶a̶n̶k̶ - avatar
0
It works fine maybe u re testing without space
15th Apr 2022, 1:45 PM
Olufikayomi Jetawo
0
Olufikayomi Jetawo i did it with spaces and my problem is fixed
15th Apr 2022, 2:59 PM
b̶l̶a̶n̶k̶
b̶l̶a̶n̶k̶ - avatar