THE WALRUS OPERATOR IN PYTHON 3.8 Date: 29/01/2020 Introduction Walrus Operator is another name for Assignment Expressions. I will explain in detail in this article. Assignment Expressions are written with a new notation which is colon followed by equal to expression ( := ) . It allows you to assign… Continue Reading THE WALRUS OPERATOR IN PYTHON 3.8

HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON Date: 07/12/2019 Introduction Python has global built-ins that are handy for a regular problem. Specifically, I will explain zip() in this article. Let’s take an example from Avengers, Have to match the list of Avengers characters with the… Continue Reading HOW TO PASS TWO OR MORE LISTS IN FOR LOOP USING PYTHON

How to install Python from source code Here, let us see how to install any python version from source code. Step 1: First, in order to get your python source file, go to the link, https://www.python.org/ftp/python/ and select the python version which you want to get installed. For example, if… Continue Reading How to install Python from source code

Deep Copy and Shallow Copy Date : 04/10/2019 copy module is used to create for shallow and deep copy operations Python. Shallow copy=>create a new object and store the reference of original elements. import copy var1=[1,2,3,4] var2=copy.copy(var1) var1 [1, 2, 3, 4] var2 [1, 2, 3, 4] Example for Shallow copy… Continue Reading Deep Copy and Shallow Copy

Python Dictionary Operations Date: 19/09/2019 In this tutorial, I going to explain the basics of python dictionary operations and methods. INTRODUCTION Python dictionary is an unordered collection of items and also it contains key-value pairs and enclosed by curly-braces { }. Each key-value pair in a python dictionary is separated… Continue Reading Python Dictionary Operations

Essential things to know about List data structure in python DATE : 22/08/2019 INTRODUCTION In python, the list is defined as a collection of items separated by a comma within the square bracket. which is best to use when we want to work with different values. LIST one of the… Continue Reading Essential things to know about List data structure in python

ValueError: unknown locale: UTF-8 Date posted : 07/06/2019 There are times when install some packages, you will end getting this error due to locale issue. Solution: You need to add locale settings in environment file. Open the file and append below lines. Thanks for using pheonix solutions. You find this tutorial… Continue Reading ValueError: unknown locale: UTF-8

HOW TO USE PYTHON : date time, Strftime Date : 30/05/2019 INTRODUCTION Python date time provides a number of function to deal with date and time . Before you run the code for datetime, it is important that you import the date time modules. IMPORT DATE TIME import date function from… Continue Reading PYTHON : Date Time, Strftime

PYTHON JSON: ENCODE AND DCODE Date posted :16/05/2019 What is json: JSON stands for JavaScript Object Notation. It may be a string or text format. JSON is similar to python dictionary. Python has a inbuilt library for JSON. syntax of JSON: Encoding: Converting python data into JSON is called encoding. dump() method used to… Continue Reading PYTHON JSON: ENCODE AND DCODE

How to solve Django migration errors-“core_module issue” Date posted : 29/03/2019 In this post, we’re gonna explain about the django migration related errors and how to solve it. Lets say you did add some new feature to your application and would like to roll out the changes to the production… Continue Reading How to solve Django migration errors-“core_module issue”