Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
keys
keys
Returns a new list of the dictionary's keys.
Python 3.13
1
dict
.
keys
(
)
Examples
Python 3.13
1
2
a
=
{
'x'
:
1
,
'y'
:
2
}
list
(
a
.
keys
(
)
)
['x', 'y']