Python – Check if an element is in a list

Python lists are quite versatile and can store a wide range of data in a sequential manner. It might be handy to know if an element belongs to a list or not. For example, you are a librarian at a public library, a person wants to check whether a book is available or not. Fortunately, … Continue reading Python – Check if an element is in a list