+ 1

What is wrong with this code: https://code.sololearn.com/cYPiq7dNjmNP/?ref=app

Please answer

18th Aug 2022, 11:42 AM
Hoha Hohou
Hoha Hohou - avatar
3 ответов
+ 1
""" https://code.sololearn.com/cYPiq7dNjmNP/?ref=app Here in this code, why do you added spaces before for loop start. Python uses space to add Identation to form blocks in code.. So unnecessary space and wrong spacing will give you identation error... corrected code is : """ jojo="youcex" for index in range(len(jojo)): print(index)
18th Aug 2022, 11:56 AM
Jayakrishna 🇮🇳
+ 2
Add code link in description place, not in question title. Also mention some about your error details.
18th Aug 2022, 11:52 AM
Jayakrishna 🇮🇳
0
The correct code: for index in range(len(jojo)):
20th Aug 2022, 4:27 AM
Trọng Khang
Trọng Khang - avatar