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
  • 7,282
  • 3
  • 30
  • 55

0 Answers0