No. The method for appending an entire sequence is list.extend()
.
>>> L = [1, 2]
>>> L.extend((3, 4, 5))
>>> L
[1, 2, 3, 4, 5]
More Related Contents:
- Base64 decoding in Python 3.2 type error
- Why does append() always return None in Python? [duplicate]
- Convert all strings in a list to int
- Convert JSON string to dict using Python
- Install a module using pip for specific python version
- Limit number of threads in numpy
- round() doesn’t seem to be rounding properly
- How to use youtube-dl from a python program?
- Send data from a textbox into Flask?
- Reduce left and right margins in matplotlib plot
- TypeError: ‘range’ object does not support item assignment
- PYTHONPATH on Linux [closed]
- Flask view shows 400 error instead of template with form
- Why does 1+++2 = 3?
- SyntaxError: “can’t assign to function call”
- Get year, month or day from numpy datetime64
- django – convert a list back to a queryset [duplicate]
- How do I separate my models out in django?
- How would you do the equivalent of preprocessor directives in Python?
- How to group DataFrame by a period of time?
- Python: Random selection per group
- Keep selected column as DataFrame instead of Series
- Order of Serializer Validation in Django REST Framework
- hasattr() vs try-except block to deal with non-existent attributes
- Pandas reindex dates in Groupby
- Numpy Vector (N,1) dimension -> (N,) dimension conversion
- Custom data types in numpy arrays
- tkinter root.mainloop with While True loop
- pandas convert from datetime to integer timestamp
- ModuleNotFoundError: No module named ‘MySQLdb’