However, be careful if you are coming from a languae like C, Python doesn’t have “variables” in the sense that C does, instead python uses names and objects and in python integers(int’s) are immutable. The syntax of a while loop in Python programming language is −. while expression: statement(s) Here, statement(s) may be a single statement or a block of statements. The above example shows this odd behavior of the for loop because the for loop in Python is not a convention C style for loop, i.e., for (i=0; i