What if I is change by x | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What if I is change by x

After changing i with x it should print 0 , 4,8... But it do not add z in x. Why? https://code.sololearn.com/cE0US5yfgvwR/?ref=app

27th Apr 2020, 2:26 AM
Kalpna Kushwaha
Kalpna Kushwaha - avatar
1 Answer
+ 4
Kalpna Kushwaha If you do so it will output integers from 0-9. As if you are checking for x in range instead of i it will print out the range itself.
27th Apr 2020, 2:31 AM
Tarun Kumar
Tarun Kumar - avatar