CATEGORY

Python

Python list extend() method [Practical Examples]

In Python, the list is an ordered and mutable container. The extend() method is used to add the items from other iterable to the existing list. In other words, …

By admin · 6 min read · Python

10 Ways to Get File Extension in Python [SOLVED]

we can get file extension in python using splitex(), split(), rfind(), pathlib.path.stem() and rpartition() method by taking various examples

By bashiralam · 11 min read · Python

How to catch multiple exceptions in Python? [SOLVED]

In Python, we use the try and except blocks to catch and handle any kind of exceptions and errors that might occur during the execution of our program. In this …

By bashiralam · 9 min read · Python

Python get home directory [Practical Examples]

In this tutorial, we learned about Python get home directory by using various methods. We covered three different methods that we can use to get the home …

By bashiralam · 6 min read · Python