I want To add a back slash To a string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want To add a back slash To a string

This don't work,van you help me plz A='hello' B=A+'\' Print(B) Thank you.

3rd Dec 2019, 3:55 PM
iren yeger
iren yeger - avatar
2 Answers
+ 3
Just add another back slash before it Also print is not capital p A="hello" B= A + "\\" print(B)
3rd Dec 2019, 4:06 PM
Creeper FRM
Creeper FRM - avatar
+ 1
Thank you it work
3rd Dec 2019, 4:09 PM
iren yeger
iren yeger - avatar