Python is one of the world’s most popular and in demand programming language. There are various reasons being: It’s super easy It’s easy to learn, even for beginners It has large number of modules and libraries. Here are a few python tricks that I stumbled upon while coding. 1. All or Any “All” keyword returns true if all the conditions are true, whereas “Any” returns true if any on condition is true. x = [True, True, False] if any(x): print("At least one True") if all(x): print("Not one False") if any(x) and not all(x): print("At least one True and one False" 2. howdoi If you forget any keyword or the coding template, you can easily refer without going away from the terminal. First install howdoi. Make sure you have pip installed for your python version. $ pip install howdoi Now ask any questions you have. It scrapes the top answer from StackOverflow and gives you the appropriate answer. For example: $ howdoi vertical align c