+ 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 Respuestas
+ 4
Python:: for i in range(5): print("hy") C:: for(int i=0;i<5;i++){}
7th May 2018, 5:14 AM
᠌᠌Code X
᠌᠌Code X - 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