DEV Community

SHAMEEM ALI
SHAMEEM ALI

Posted on

1

dict comprehension

dict comprehension
new_dict = {new_key: new_value for (key,value) in dict.items()}

Top comments (0)

Image of DataStax

AI Agents Made Easy with Langflow

Connect models, vector stores, memory and other AI building blocks with the click of a button to build and deploy AI-powered agents.

Get started for free

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay