0

how to fix this array string problem

model = [r'/\', '|', r'/|\', 'O'] I dont know how to describe this problem but i want to print a stick man model via for loop from model. I thought this problem relating to '\' so I used (r) to treat these strings as Raw string but It did not fix the error. Thanks for helping

26th Oct 2020, 2:38 PM
MasterofBeginning
MasterofBeginning - avatar
1 Resposta
+ 2
Does this helps? model = ['/\\', '|', '/|\\', 'O'] escape any "\" character using "\"
26th Oct 2020, 3:04 PM
Abhay
Abhay - avatar