Python For Loop
Below code demonstrated using Python for loop.
----------------------------------------------
#Output
5
6
7
8
9
#Python for loop def main(): x = 0 #define for loop for x in range(5, 10): print(x) if __name__ == "__main__": main()
----------------------------------------------
#Output
5
6
7
8
9
Comments
Post a Comment