Ed Rogers |
David Hoese |
Josh Karpel |
MadPy is a community group and open to all experience levels. We are committed to a safe, professional environment
We are enthusiastically focused on improving our event and making it a place that is welcoming to all. All reports will be taken seriously, handled respectfully, and dealt with in a timely manner.
Learn more about the MadPy Code of Conduct:
https://github.com/madison-python/code-of-conduct
def expand(s: str) -> list[int]:
"""
Turn "1-5,7,9,10-13" into a list of numbers
"""
return [
num
for p in s.split(",")
for a, _, b in [p.partition("-")]
for num in range(int(a), int(b or a) + 1)
]
expand("1-5, 7, 9, 10-13")
[1, 2, 3, 4, 5, 7, 9, 10, 11, 12, 13]
madpy.com | |
meetup.com/madpython | |
github.com/madison-python | |
fosstodon.org/@madpy | |
slack.madpy.com | |
linkedin.com/company/madpy |
https://www.bli.do/2024-12-12-MadPy-Social-Media
https://www.bli.do/2024-12-12-MadPy-Office-Hours