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
So far I have tried this:
print(*verdict.items(), sep='\n')
Output:
('1', 'PASS')
('2', 'FAIL)
but not getting the actual results
Is there any way through which I can achieve the desired output?