Stack Exchange network consists of 182 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
print("no input received"[3*any(select.select([sys.stdin],,,10)):])
First try at golfing.
-4 for any(), -7 for slicing, thanks @user2357112!