KnowledgeBoat Logo

Computer Science

Write a Python program to convert a string to a list.

Python

Python List Manipulation

1 Like

Answer

string = input("Enter the string: ")
char_list = list(string)

print("String converted to list:", char_list)

Output

String converted to list: ['P', 'y', 't', 'h', 'o', 'n']

Answered By

1 Like


Related Questions