Run
import json # Given list x = ['apple', 'banana', 100, 200] # Convert each element to string x = [str(element) for element in x] # Convert list to JSON string x_double_quotes = json.dumps(x) # Print the list with double quotes print(x_double_quotes)
Output