Respuesta :

Limosa

Answer:

Following are the code in the Python Programming Language.

#set and initialize string type variable

str1 = "I love python"

#convert and initialize the value of string into list

chars=list(str1)

#print the value of the list

print(chars)

Output:

['I', ' ', 'l', 'o', 'v', 'e', ' ', 'p', 'y', 't', 'h', 'o', 'n']

Explanation:

The description of the program in the Python Programming Language.

  • Here, we set a string data type variable i.e., "str1".
  • Then, convert the value of string into the list through "list()" built-in function that converts the value into the list and store it into the variable "chars".
  • Finally, we print the value of the variable "chars".
ACCESS MORE
EDU ACCESS
Universidad de Mexico