employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

2) How to get all the keys in a Dictionary in Python ?

Interview Answer

Anonymous

1 Apr 2023

I replied that we will use keys() function on that dictionary. Suppose dictionary name is cars. Then cars.keys().