I have this code:
table is a list.
if 'ping' in table or 'pong' in table: # Do something here
Is there a shorter way to write this?I don't want to have table duplicated in the if statement.
No comments:
Post a Comment