Large data?
Lists can help.
Name your list
So, for example, you want to make a list of the fruits you want to buy.
Write it out as :
Write it out as shown in the image. Then print it.
You can access any single item from the list.
The indexing starts at zero. So, the third item would actually be the second in the list.
Items can be accessed backward too and this is done by using negative values.
Now, what if you wanted to access items after a certain position. That is possible too.
Just type the code as above. You can experiment with this to understand it more, practically.
Suppose you want to replace it. It is easy. Just replace the value and print.
As you can see, banana is replaced by jackfruit
The very basic list functions were cited above.
I hope you enjoy learning Python.
images - screenshots of Google colab