fill in the blanks to create a loop that increment the value of x by 2 and print the even values. x=0 _x<=20: print(x) x+=2 pls help me out | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

fill in the blanks to create a loop that increment the value of x by 2 and print the even values. x=0 _x<=20: print(x) x+=2 pls help me out

2nd Sep 2016, 6:12 PM
anthony
5 Answers
+ 1
should use while condition
7th Sep 2016, 2:06 AM
anuvardhan theegala
anuvardhan theegala - avatar
0
ans: if
2nd Sep 2016, 6:15 PM
Simran Madhok
0
if
2nd Sep 2016, 6:25 PM
xein
xein - avatar
0
You need to use 'while' loop, not 'if' like other people are writing
4th Sep 2016, 6:06 AM
Lukasz Sikora
Lukasz Sikora - avatar
0
The correct answer is: while
2nd May 2020, 7:59 AM
Gaurav Bharat Patil
Gaurav Bharat Patil - avatar