Quick actions

cmd+k|ctrl+k

Navigation

Languages

Exercise: Tricky Counter

Snippet info

Language

Python

Visibility

public

Author

gustav

Created

2026-07-21T00:09:05.654557Z

Updated

2026-07-22T01:57:20.677877Z

#Counter

my_list = [1,2,3,4,5,6,7,8,9,10]

counter = 1
for cucurella in my_list:
    counter = counter + cucurella
    print(counter)
INFO