-2

My error line:

desk = 'c:\Users\'

I whant my output to be c:\Users\ but I cant end my line with \. How do I make it happen?

Cory Kramer
  • 114,268
  • 16
  • 167
  • 218
Timor
  • 91
  • 6

1 Answers1

1

You need to escape the backslash

>>> desk = 'c:\\Users\\'
>>> desk
'c:\\Users\\'
Cory Kramer
  • 114,268
  • 16
  • 167
  • 218