xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to use for loop in Python
Python Online Editor
Execute Code
More Python Sample Codes
print("for loop begins.") # This for loop will print numbers from 1 to 10 for i in range(1, 11): # loop through range print("Number: " + str(i)) print("for loop stopped.\n") print("Another for loop begins.") # Creating a list in one line fruits = ["Apple", "Banana", "Cherry", "Orange", "Watermelon"] # list of strings # print fruit name one by one using loop for fruit in fruits: # loop through python list print(fruit) print("for loop stopped.")