3.1.1 Syntax and Anatomy of the For Loop

Unit: Unit 3: Loops • Interactive Practice

Quick Answer & Summary:

Interactive Python programming tutorial and practice in your browser.

Interactive Challenge (Run Live in Browser):

# Iterate over individual characters in a word
word = "PYTHON"

for char in word:
    print("Character:", char)

print("Loop finished!")
Open in Live Interactive Python Sandbox →