By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,758 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

Ending string assignment with "\".....

P: 1
Whay can't I end a string assignment with the '\'....
fylpath = "c:\scripts\python\prod_select\"
the last '\' isn't included in the string when I print the string. I was using the string to define a DOS path to a file.
May 23 '11 #1

✓ answered by bvdet

Use "\\" to print the backslash character.

Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
Use "\\" to print the backslash character.
May 23 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.