10 Ways to Get File Extension in Python [SOLVED]
By Bashir Alam
When we are starting to write code in any programming language then we need to save the file at a location. For that purpose, we ...
By Bashir Alam
When we are starting to write code in any programming language then we need to save the file at a location. For that purpose, we ...
By Bashir Alam
Brief Overview of Python Marshmallow Marshmallow is a popular Python library that simplifies complex data types such as objects to be easily rendered into JSON, ...
By Bashir Alam
How do we catch exceptions in Python? In Python, when an exception is raised, the normal flow of execution is interrupted, and the program jumps ...
By Bashir Alam
Introduction to Python get home directory Directories are a way of storing, organizing, and separating files on a computer. The path contains a combination ...
By Bashir Alam
Introduction to Python exit script methods Python scripts or programs run forever unless the execution reaches the end of the program or is exited explicitly. ...
By Bashir Alam
Introduction to Python line continuation We cannot split a statement into multiple lines in Python by just pressing Enter. Instead, most of the time ...
By Bashir Alam
Getting Started with the Python pwd Module The Python pwd module is a built-in library that provides a way to access the Unix passwd database. ...
By Bashir Alam
An argument is a value that is passed to the function when it is called. Sometimes, we need to have optional arguments as well, which ...
By Bashir Alam
Introduction to Python writelines and write method A file is some information or data which stays in the computer storage devices. Python gives us easy ...
By Bashir Alam
Introduction to Python range reverse use case The python range method creates a collection of numbers on the fly, for example, 0, 1, 2, ...
By Bashir Alam
Introduction to Python None Keyword Python None is used to define a null value. It is not the same as an empty string, False, ...
By Bashir Alam
Introduction to Python remove element from list A list is an ordered and mutable Python container, being one of the most common data structures ...
By Bashir Alam
Getting started with Python os.path.join() Method When working with file paths in Python, it's essential to handle them in a way that is independent of ...