Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Please try yourself The quiz are to enhance your understanding, and being able to solve them by yourself is necessary for you to understand the next concepts. If one question is too hard, look at the page before it. Click Try It Yourself and make changes and see what happens to output to understand. Don't give up.
16th Mar 2021, 7:08 AM
Gordon
Gordon - avatar
16th Mar 2021, 7:09 AM
Tomas Konecny
16th Mar 2021, 8:01 AM
visph
visph - avatar
0
Check out my code again, I put some comments, so I hope now it's better to understand.
17th Mar 2021, 5:43 AM
Tomas Konecny
- 1
You can use this To get sum of first five n = 5 + 1 print(sum(range(1, n)))
16th Mar 2021, 9:18 PM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar