Python urllib Module Tutorial

Python urllib Module Tutorial

Python provides the urllib module in order to handle URL-related tasks. The URL is the short form of the Unified Resource Locators and used to address web pages or other resources uniquely. The urllib module provides the following features and functions. urllib.request is used to open and read requests. urllib.parse is used to parse URLs … Read more

Python Command Line Arguments

Python Command Line Arguments

Python provides the ability to use Python applications and scripts via the command-line interface. Command line arguments can be read by using different methods or modules like sys.argv , getopt module or argparse module. In this tutorial, we examine different use cases for the Python command-line arguments. Using sys.argv The sys module provides the argv … Read more

Python Configparser Tutorial

Python Configparser Tutorial

Python provides the ConfigParset class in order to implement basic configuration management. The configuration is stored as a Microsoft Windows INI file which is a very popular format. By using ConfigParser different configurations can be created, updated, or read easily with less error and work. The configuration file can be used to store and read … Read more

How To Print Variables In Python?

How To Print Variables In Python?

Python is a very versatile programming language that provides a lot of different methods in order to print variables and strings in different ways. Mainly the print() statement is used to print provided variables by using extra operators like %, {} , + , f-string, comma etc. print() Statement The print() statement is used to … Read more

Print Dictionary In Python

Print Dictionary In Python

Python dictionary type is used to store key-value pairs as items. The key is used to identify value where the key is unique. There are different ways to print dictionaries in a line-by-line or item-by-item way. In this tutorial, we examine methods to print dictionaries line by line like for Loop , Iterating over Keys … Read more

Write File with print() Function In Python

Write File with print() Function In Python

Python provides the print() function in order to print or display some text to data in the command-line interface or interactive interpreter. Event the print() function is mostly used to print command-line interfaces or interactive interpreters there are some alternatives that can be used to write a file. In this tutorial, we examine how to … Read more