What is difference in for-loop of python and c? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is difference in for-loop of python and c?

Is any difference in the for-loop of python and for-loop of c.

7th May 2018, 4:13 AM
Iltifath Ahmed Shah
Iltifath Ahmed Shah - avatar
2 Answers
+ 4
Python:: for i in range(5): print("hy") C:: for(int i=0;i<5;i++){}
7th May 2018, 5:14 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 3
python's for loop is an iterator. but c's for loop only just a loop. c++'s for loop could be iterator or only loop.
7th May 2018, 4:41 AM
RainStorm
RainStorm - avatar