import pprint data = {'email': 'test@test.com', 'password': '123'} print(data, type(data)) # convert dict to str result = pprint.pformat(data) print(result, type(result))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter