Hacker News new | past | comments | ask | show | jobs | submit login

In Python isn’t that either this, for the first part of your sentence:

    students: list[tuple[int, Student]]
Or the second half and a more idiomatic structure:

    students: dict[int, Student]



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: