Please explain why this problem occur. Thanks in advance. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Please explain why this problem occur. Thanks in advance.

we are going to test two lists to see if the second list is the reverse of the first list. we are going to try a method that iterates through each of the values in one direction for the first list and compares them against the values starting from the other direction in the second list. https://code.sololearn.com/c8Au8JDi3Lox/?ref=app

5th Jan 2022, 3:25 PM
Balraj Singh
1 ответ
+ 4
7th line != 15th line == The last else clause belongs to the for loop, not the if statement. That's why the else part doesn't match with if block, for-else statement .
5th Jan 2022, 4:06 PM
Simba
Simba - avatar