CATEGORY

Python

How to PROPERLY exit script in Python [3 Methods]

In this tutorial, we learned about three different methods that are used to terminate the python script including exit(), quit() and sys.exit() method by taking …

By bashiralam · 8 min read · Python

Master Python pwd Module [Basics to Advanced]

The Python pwd module provides access to the Unix user account and password database. Using this module, we can access the user's account and password database. …

By bashiralam · 10 min read · Python

Master Python Optional Arguments Usage [Tutorial]

Learn everything you need to know about Python optional arguments and optional args. From basics and best practices to advanced techniques, this guide covers it …

By bashiralam · 13 min read · Python

Python writelines() Method [Practical Examples]

how we can use the Python writelines() and Python write() method to write a specific text to the file by using various examples. Furthermore, we also discussed …

By bashiralam · 8 min read · Python