Write the output after removing the error in given code: for a in range(10,0,-2) print (a) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write the output after removing the error in given code: for a in range(10,0,-2) print (a)

how to solve it

3rd Dec 2020, 11:11 AM
Rohit Kumar Chanotra
Rohit Kumar Chanotra - avatar
4 Answers
3rd Dec 2020, 11:13 AM
Rohit Kumar Chanotra
Rohit Kumar Chanotra - avatar
+ 11
Rohit Chanotra You can easily try that by yourself in code playground 👍 Hope you understand..
3rd Dec 2020, 11:20 AM
Piyush
Piyush - avatar
+ 3
You missed a colon ':' and there is an indentation error for a in range(10,0,-2): print (a) Take a look at this lesson https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2434/
3rd Dec 2020, 11:48 AM
Simba
Simba - avatar
0
In which programming language?🤔
3rd Dec 2020, 11:13 AM
Matias
Matias - avatar