I want to append a string with a tab character to a list. Then, when I print the list, I want to be able to get the same output when I do the print(string).
For example:
list1 = []
string = "Names:\tLucas"
print(list1)
print(string)
The output:
['Names\tLucas']
Names Lucas
What's a way to do this.