Check out this refresher on ways to add items to python lists
“Share your knowledge. It is a way to achieve immortality.” ― Dalai Lama XIV
1. Introduction
Python offers the list data type which is similar to an array in C/C++ or Javascript or a List in Java. Of course, there are differences between the list in python and these languages. Sigh, wouldn’t it have been nice if all the common languages offered such data types with the same methods – same name, parameters, everything? Then you could have concentrated on mastering one and you would have it all. At the very least, this could have been done for common programming entities such as strings, list/array, characters, integer and float numbers, booleans, etc.
Continue reading “Python List Methods: Adding Items”