I have a dictionary like this
verdict = {'1': 'PASS', '2': 'FAIL}
I want to print this dictionary in a string format without using for loop. output:
1: PASS
2: FAIL
Is there any way through which I can achieve the desired output?
Read more here: https://stackoverflow.com/questions/66272322/python-dictionary-in-string-format
Content Attribution
This content was originally published by Sam at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.