How to get user input from console in Python

To get user input in console applications, we are using input function. This function gets a question string to be […]

How to add two numbers in python

In order to add two numbers, we are using arithmetic operator + in python. If the numbers you are using […]

Update pip using python

PIP is the package installer and updater for python. You can install and update all the tools, libraries you need […]

How to Write Unicode Characters to a File (UTF-8)

While working with unicode characters in python, you have to use special encoding and decoding functions. Here is a sample […]

How to read and write JSON in Python

JSON is a very common data transfer format used both on web and desktop projects. In this post, we will […]

[How To] Read File Line by Line

To read a file line by line, you will need to use readlines method of file object. This function reads […]