Python Example – Write a Python program to convert a string to a list

(Python Example for Citizen Data Scientist & Business Analyst)   Write a Python program to convert a string to a list.   Sample Solution Python Code: import ast color =”[‘Red’, ‘Green’, ‘White’]” print(ast.literal_eval(color)) Sample Output: [‘Red’, ‘Green’, ‘White’]   Write a Python program to convert a string to a list Free Machine Learning & Data … Continue reading Python Example – Write a Python program to convert a string to a list