Answers for "loop append to list python"

0

loop append to list python

a=[]
for i in range(5):    
    a.append(i)
print(a)
# [0, 1, 2, 3, 4]
Posted by: Guest on March-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language