I want to extract the values from a dictionary and print them as a list. For example: If i have letter = {"i": 3, "o": 2, "u": 2}
and want to extract 3,2, and 2 and print it as a list
[3, 2, 2] How do I do this? I've tried
print([x[::] for x in letter])
However, this prints out ['i', 'o', 'u'] and not [3, 2, 2]. Thank you for the help in advanced :)