Solo learn keeps catching them dubs need help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Solo learn keeps catching them dubs need help

what is the output if this code? defp(p): for i in range(0,5,2): p+=i p-=2 print(p) p(2)

22nd Jan 2022, 12:55 PM
Quality Crew
Quality Crew - avatar
2 Answers
+ 1
You could put it in the playground and run it. Fix the indentation though. For the how: print p and i every iteration
22nd Jan 2022, 1:05 PM
Slick
Slick - avatar
+ 1
Error.
22nd Jan 2022, 1:05 PM
JaScript
JaScript - avatar