Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lecture 7 For Loop

Snippet info

Language

Python

Visibility

public

Author

tonyngswell

Created

2026-04-30T13:54:45.61815Z

Updated

2026-04-30T14:00:31.550025Z

for i in [1,2,3,4]:
    i=i*i
    print(i)
for i in range(1,20,4):
    for j in range(5):
        print(f'j:{j},i:{i}')
    if i==13:
        break
    print(i)
INFO