I am trying to alter values without reassigning any value in the dictionary. But it seems that it works for pop function and not with string functions.
I tried with other list functions and works the same as pop. Looks that list and string work differently when used as values.
my_dict={"Rank":[1,2,3],"Name":"John"}
my_dict.get("Rank").pop()
print(my_dict)
my_dict.get("Name").capitalize()
print(my_dict)