https://how.okpedia.org/en/python/how-to-extract-elements-from-python-list
x=list[0:3]
The first position of the interval is included while the second is excluded from the selection. The first three elements of the list are assigned to the variable x.
['A', 'B', 'C']
No comments:
Post a Comment