I have this Python Code:
def dictofvalues():
values = {'A': '1', 'C': '3', 'B': '2'}
return(values)
def main():
values = dictofvalues()
print(sorted(values))
Which prints: A, B, C.
However, I want it to print A:1, B:2, C:3. In other words, I want it to print the item with the assigned value as well.
How does one go about doing this?