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

You can use `if (response := get_user_input()) is not None` if that's important. IME, empty strings and None would be treated the same way.


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

Search: