What number is printed at the end of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What number is printed at the end of this code?

num1 = 0 num2 = 0 for x in range(5): num1 = x for y in range(14): num2 = y + 3 print(num1 + num2)

19th May 2023, 7:29 AM
prajakta gurav
4 Answers
+ 5
Run the code and see it
19th May 2023, 7:46 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 2
There is a code playground in sololearn. You can see it there
19th May 2023, 9:03 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 2
PRAJAKTA SUBHASH GURAV Besides: why the loops?
19th May 2023, 10:53 AM
Emerson Prado
Emerson Prado - avatar
19th May 2023, 11:03 AM
Alhaaz
Alhaaz - avatar