شرح list in python

شرح list in python



# lists 
   #0   1   2
x = [99,55,33]

print(x)
7
x = [99,55,33]

print(x[2])
# lists 
x = []

x.append(45)
x.append(50)
print(x)

# input in list 

x = []

x.append(input("enter a value :"))
x.append(input("enter a value :"))
x.append(input("enter a value :"))
x.append(input("enter a value :"))
x.append(input("enter a value :"))
x.append(input("enter a value :"))
print(x[3])