#!/bin/python dict = { 'name': "" } dict['name'] = "{}".format("\python") print(dict)here is the output:
{'name': '\\python'}
The above code snippet, here have created a dictionary of one key and assigned a value to it. When I print the value of dict['name'] it prints '\python', however when it prints with dict and it prints with '\\python'. And this is python 2.
Can any one please help me out to solve this issue. Thanks in advance.
Regards,
Maiya