I have a variable containing folderpath in format C:/folder/folder
. I need to covert it into C:\folder\folder
. I tried this script: folder_path = folder_path.replace("/", "\")
, but the last "\"
is being interpeted by something other than a string containing character: \
How do I tell python I literarily whant only charater \
in a string?