1

I am trying to create a list like this:

signs = ['/', '-', '\']

I get EOL error probably because of \

So I updated the list to :

signs = ["/", "-", "'\'"]

# output ['/', '-', "''"]  


Silly to ask but how do I get the list with \ as a string present in the list, so I can iterate over them.

bhansa
  • 6,780
  • 2
  • 27
  • 49

0 Answers0