I have a problem in dictionaries in python what is this strange output?

Viewed 19
dictionaries_test = {'K1': 15, 'K2': 20}


for keys, values in dictionaries_test:
    print(f'({keys}, {values})')

output => (K, 1) (K, 2)

Why i get this output but if change the K1 to any think like o i get error message ?

0 Answers
Related