Wednesday, June 19, 2019

elements access using index in python

mylist = ["black", "red", "orange"]
print( mylist[0])
print( mylist[1])
print( mylist[2])

output:


No comments:

Post a Comment

python class topic video