So i have dictionary like this
mydic={
'a':3,
'b':1,
'c':2,}
def sortedby():
sort= (sorted(mydic.items(), key = lambda t : t[0]))
return(sort)
print(sortedby())
I would like to get it returned not as list or int but as dictionary