I just started learning Python and I have a question I didn't find answer for.
There is a command that will print all keys of a dictionary ex.
list = {
"key1": "value1",
"key2": "value2"
}
for x in list:
print(x)
And output will be:
key1
key2
Also there is a command that will print the value of specified key
y = list["key1"]
print(y)
And output will be:
value1
What I want to know is there any command that will print all the values of all keys the same time with one command(just like we did with keys) and not to access them one by one.
Hopefully I was clear enough, thanks.