Write Python code to convert string to list character-wise


Topic: Write Python code to convert string to list character-wise

Solution

def Convert_3(string): 
    list1=[] 
    list1[:0]=string 
    return list1 
str1="ABCD"
print(Convert(str1)) 



List all Python Programs