👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.
iterate over list python

In Python 3, to iterate over lists, simply use a for loop:

list = [1, 2, 4, 8, 16] 
for i in list: 
	print(i)


More