0

How can i represent the character "\" as a string?

i need know how do this, to cut a string with slicing "[x:y]", and one of the variables is that character... obs: Sorry about my english :)

1st Nov 2016, 1:44 AM
Bruno Faria
Bruno Faria - avatar
3 Respuestas
+ 3
It's quite simple ..... you can simply represent it by putting to \\. newStr = "\\" print (newStr)
1st Nov 2016, 1:55 AM
Waqas Asghar Bhalli
Waqas Asghar Bhalli - avatar
+ 1
You are welcome mate
1st Nov 2016, 1:59 AM
Waqas Asghar Bhalli
Waqas Asghar Bhalli - avatar
0
really...kkkkkkkk tks man!
1st Nov 2016, 1:58 AM
Bruno Faria
Bruno Faria - avatar