In this video, we will write a python program to append a String to a List.
Below is the list of approaches that we will cover in this section:
1. Append String to List using the """"""""+"""""""" operator
2. Append String to List using append method.
Here we will use the + operator to concatenate a string with a given list. We first convert the string into a list and then perform the task of append using + operator.
Another method is to use a Python loop with the help of this specific function, it is possible to append a string element to the end of a list without converting the string to a list of characters.
Python program to append string to list:
https://www.geeksforgeeks.org/python-append-string-to-list/