#option 1

x = []

for i in range(5):
    x.append(i)

#verses

x = [i for i in range(5)]