Quick actions

cmd+k|ctrl+k

Navigation

Languages

Counter

Snippet info

Language

Python

Visibility

public

Author

raulciprian.tudor

Created

2026-01-04T11:05:20.197598Z

Updated

2026-01-04T11:05:20.197598Z

# counter - count items in list
my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
total = 0

for num in my_list:
    total = total + num

print(f"Total sum is: {total}")
INFO