so i have python homework and had to print values and keys, but with "->" between them.
d = {'x': 10, 'y': 20, 'z': 30} this is values and keys and had to print it like this
x -> 10 y -> 20 z -> 30 i tried to do it like this
for key, value in d.items(): print(key + "->" + value) but it tells me that "an only concatenate list (not "str") to list" what can i do?
print(f'{key} -> {value}')?