How to create a dictionary and add specific keys and values from a yaml file?

How to create a dictionary and add specific keys and values from a yaml file?

I have init.yaml file which is having username and password and other details. I want to create a dictionary which is taking username, password, name and address as key and it’s value as value in my code

I’d suggest installing the pyyaml package from PyPI.

2 Likes