0 votes
8 views

How will you get all the keys from the dictionary?

in Technology by (189k points)

1 Answer

0 votes
Using dictionary.keys() function, we can get all the keys from the dictionary object.
print dict.keys()   # Prints all the keys
by (189k points)

Related questions

0 votes
1 answer 11 views
0 votes
1 answer 10 views
0 votes
1 answer 10 views
0 votes
1 answer 9 views
0 votes
1 answer 11 views
...