0

What's the output of this code? i = 0 x = 0 while i < 4: x+=i i+=1 print(x)

30th Apr 2021, 7:35 AM
Jagadeesh Latha
Jagadeesh Latha - avatar
1 Antwort
+ 1
Hi! Please, put this code in code playground and see yourself: If you want to run a code on Sololearn... Then, ➡️ Go to the Code Playground section (you can find it here : https://code.sololearn.com) and click on the + icon at the bottom right corner. ➡️ Then select language and write your code and save it. ➡️ Then click on Run and your Code will get executed.
30th Apr 2021, 7:40 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar