My goal is to print a backslash in Python3. My input is
links22 = ['1',"n","nkf"]
treee = ['<img src={} \\>'.format(i) for i in links22]
print(treee)
The output that I get is:
['<img src=1 \\>', '<img src=n \\>', '<img src=nkf \\>']
The output that I want is:
['<img src=1 \>', '<img src=n \>', '<img src=nkf \>']
And when I try:
print("\\")
The output is:
\
I want to figure out why the first output is \ and in the second is .