Plzz Explain what is the output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Plzz Explain what is the output

Col=[] sum =0 for a in range(10): Col.append(sum) sum+=a print(Col[5])

22nd Dec 2020, 10:08 AM
คгשเภ๔ кย๓คг
คгשเภ๔ кย๓คг - avatar
2 Answers
+ 4
Please follow the syntax of python use indentation for FOR loop
22nd Dec 2020, 10:13 AM
Aysha
Aysha - avatar
+ 3
Run on code playground and see the output.
22nd Dec 2020, 10:12 AM
A͢J
A͢J - avatar