Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does python involve calling "get_us_presidents()"?


I couldn’t see how to get the code to show in the shared link myself.

But I did look at the code during the session when I was creating the link. It’s just what you would expect - a dictionary of US Presidents and the year they were born and one line built in Python function to sort the list.


You can check the code it generated in the long OP provided (this button is not very visible so I understand if you missed it).




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: