Answers for "go through array python"

4

iterate through an array python

colors = ["red", "green", "blue", "purple"]
i = 0
while i < len(colors):
    print(colors[i])
    i += 1
Posted by: Guest on August-29-2020
-1

python for loop array

print("Hello, world")
Posted by: Guest on March-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language