"""author: @pythonpips"""

contact = {'name': 'Vaibhav', 'phone': '+111111111111', 'skills': 'Python'}
contact_keys = [*contact]
print(contact_keys)
# contact_keys outputs ['name', 'phone', 'skills']
How to Get List of Dictionary Keys in Python

Subscribe to our newsletter