Compare the R vector page: https://stat.ethz.ch/R-manual/R-devel/library/base/html/vect...
To the equivalent python documentation: https://docs.python.org/3/tutorial/datastructures.html