Spaces:
Sleeping
Sleeping
File size: 197 Bytes
1995f0f | 1 2 3 4 5 6 7 8 9 | import yaml
with open('openenv.yaml') as f:
d = yaml.safe_load(f)
for t in d.get("tasks", []):
g = t.get("grader")
print(f"{t['id']}: grader type = {type(g).__name__}, value = {g}")
|