как да използвате цикъла for по python
a_list = [1,2,3,4,5]
#this loops through each element in the list and sets it equal to x
for x in a_list:
print(x)
за един цикъл е за python
data = [34,56,78,23]
sum = 0
# for loop is to iterate and do same operation again an again
# "in" is identity operator which is used to check weather data is present or not
for i in data:
sum +=i
print(sum)