So I need to make function that return reversed dictionary
this is what I tried:
def kaanna(sanakirja: dict):
uusi = {}
for avain, arvo in sanakirja.items():
uusi[arvo] = avain
print(uusi)
s = {1: 10, 2: 20, 3: 30, 4: 40}
kaanna(s)
print(s)
But this only return this same s dictionary and its should retunr it like this {10:1, 20:2, 30:3 etc.}