Not built into Python so you install pyyaml:
pip install pyyaml
You can then use pyyaml.safe_load( file_handle ) to parse into Python object.
On this page of the site you can watch the video online How to parse a YAML file with Python 🐍 with a duration of hours minute second in good quality, which was uploaded by the user ModernPython 16 December 2022, share the link with friends and acquaintances, this video has already been watched 827 times on youtube and it was liked by 16 viewers. Enjoy your viewing!