Convert a simple indented YAML-like format into a nested dictionary.
Constraints
Example
>>> parse_yaml("name: Alice\nage: 30")
{'name': 'Alice', 'age': '30'}
>>> parse_yaml("root:\n child: 5")
{'root': {'child': '5'}}
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints