tessl install tessl/pypi-us@3.2.0A package for easily working with US and state metadata
Agent Success
Agent success rate when using this tile
88%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.24x
Baseline
Agent success rate without this tile
71%
A command-line utility that analyzes and reports on US states and territories based on user-specified criteria.
Create a module that provides the following functionality:
list_states() that returns a list of all US state names (should return exactly 50 states)list_territories() that returns a list of all US territory names (should return exactly 5 territories)count_all() that returns the total number of states and territories combined (should return 55)All functions should return the results in a consistent format (lists of strings for names, integers for counts).
@generates
def list_states():
"""
Returns a list of all US state names.
Returns:
list: A list of strings containing all US state names
"""
pass
def list_territories():
"""
Returns a list of all US territory names.
Returns:
list: A list of strings containing all US territory names
"""
pass
def count_all():
"""
Returns the total count of US states and territories.
Returns:
int: The total number of states and territories
"""
passA Python library for working with US state and territory metadata.