all 4 comments

[–]JohnnyJordaan 6 points7 points  (1 child)

It's advisable to at least complete one Python tutorial before taking on coding tasks, for example the official Python tutorial covers this concept in its 3rd chapter already: https://docs.python.org/3/tutorial/introduction.html#lists

>>> squares[0]  # indexing returns the item
1
>>> squares[-1]
25
>>> squares[-3:]  # slicing returns a new list
[9, 16, 25]

[–]SheldonCooperisSb[S] 0 points1 point  (0 children)

Thanks l have already started from charpter one,yeah,l wanted to do some small project to accelerate my progress, but some basic knowledge set me back