The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert
The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert the list
The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert the list to JSONL file
The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert the list to JSONL file with rank
The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert the list to JSONL file with rank, city
The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert the list to JSONL file with rank, city, state
The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert the list to JSONL file with rank, city, state, and hours
The three US cities with the worst traffic are:
1. Boston, MA (164 hours)
2. Washington, DC (155 hours)
3. Chicago, IL (138 hours)
Convert the list to JSONL file with rank, city, state, and hours
[
{"rank": 1, "city": "Boston", "state": "MA", "hours": 164},
{"rank": 2, "city": "Washington DC", "state": "DC", "hours": 155},
{"rank": 3, "city": "Chicago", "state": "IL", "hours": 138}
]
[
{"rank": 1, "city": "Boston", "state": "MA", "hours": 164},
{"rank": 2, "city": "Washington DC", "state": "DC", "hours": 155},
{"rank": 3, "city": "Chicago", "state": "IL", "hours": 138}
]
Remove
[
{"rank": 1, "city": "Boston", "state": "MA", "hours": 164},
{"rank": 2, "city": "Washington DC", "state": "DC", "hours": 155},
{"rank": 3, "city": "Chicago", "state": "IL", "hours": 138}
]
Remove rank
[
{"rank": 1, "city": "Boston", "state": "MA", "hours": 164},
{"rank": 2, "city": "Washington DC", "state": "DC", "hours": 155},
{"rank": 3, "city": "Chicago", "state": "IL", "hours": 138}
]
Remove rank and write out
[
{"rank": 1, "city": "Boston", "state": "MA", "hours": 164},
{"rank": 2, "city": "Washington DC", "state": "DC", "hours": 155},
{"rank": 3, "city": "Chicago", "state": "IL", "hours": 138}
]
Remove rank and write out full state names
[
{"rank": 1, "city": "Boston", "state": "MA", "hours": 164},
{"rank": 2, "city": "Washington DC", "state": "DC", "hours": 155},
{"rank": 3, "city": "Chicago", "state": "IL", "hours": 138}
]
Remove rank and write out full state names
[
{"city": "Boston", "state": "Massachusetts", "hours": 164},
{"city": "Washington DC", "state": "District of Columbia", "hours": 155},
{"city": "Chicago", "state": "Illinois", "hours": 138}
]
[
{"city": "Boston", "state": "Massachusetts", "hours": 164},
{"city": "Washington DC", "state": "District of Columbia", "hours": 155},
{"city": "Chicago", "state": "Illinois", "hours": 138}
]
Turn
[
{"city": "Boston", "state": "Massachusetts", "hours": 164},
{"city": "Washington DC", "state": "District of Columbia", "hours": 155},
{"city": "Chicago", "state": "Illinois", "hours": 138}
]
Turn into YAML
[
{"city": "Boston", "state": "Massachusetts", "hours": 164},
{"city": "Washington DC", "state": "District of Columbia", "hours": 155},
{"city": "Chicago", "state": "Illinois", "hours": 138}
]
Turn into YAML and return
[
{"city": "Boston", "state": "Massachusetts", "hours": 164},
{"city": "Washington DC", "state": "District of Columbia", "hours": 155},
{"city": "Chicago", "state": "Illinois", "hours": 138}
]
Turn into YAML and return from a function
[
{"city": "Boston", "state": "Massachusetts", "hours": 164},
{"city": "Washington DC", "state": "District of Columbia", "hours": 155},
{"city": "Chicago", "state": "Illinois", "hours": 138}
]
Turn into YAML and return from a function called get_yaml
[
{"city": "Boston", "state": "Massachusetts", "hours": 164},
{"city": "Washington DC", "state": "District of Columbia", "hours": 155},
{"city": "Chicago", "state": "Illinois", "hours": 138}
]
Turn into YAML and return from a function called get_yaml
def get_yaml():
return """
- city: Boston
state: Massachusetts
hours: 164
- city: Washington DC
state: District of Columbia
hours: 155
- city: Chicago
state: Illinois
hours: 138
"""