0

I need to to correct the code.pls help

while k<10 print (k) k=k+2 I know that there should be indentation at print but for the other problem, error is showing k value not defined.so any suggestions for solutions

9th Oct 2018, 6:23 PM
partha
partha - avatar
1 Answer
+ 6
k = 0 while k < 10: print(k) k +=2 k should have a value before you start the while loop.
9th Oct 2018, 6:26 PM
Paul
Paul - avatar