How to create a new dictionary in python?

To create a blank dictionary, all you have to do is to type {}.

Every dictionary is enclosed by the curly brackets.

To create a basic dictionary, you can follow following steps:

NEWDICT =  {}   #Creates a blank dictionary with the identifiable name NEWDICT which can be anything you want.

NEWDICT = {'key1':'value1'} #This is the basic dictionary with one key value pair -- both key and value must be inside quotes. 

Python Dictionary - Dictionary in Python - JSON like structure

Dictionary is one of the most important types of data types in Python programming language and it has a structure similar too that of JSON Structure which makes it very useful for storing data.

In other programming languages, they are found as associative arrays  or associative memories. 

Python dictionaries are indexed by keys which must be of immutable type - such  as strings, numbers, or must contain immutable data typle if they are of collection type such as tuples.

Python Tutorial - How to calculate factorial using recursion function in Python Language?

Following is the code to calculate factorial using recursion function : 
def fact(x):
    if x ==1:
        return x
        sum += x*fact(x-1)
        return sum

Introduction - Matplotlib #1.1

In this article, we will be exploring how to plot a very simple line graph using a Python library called matplotlib.

Matplotlib is a library for making 2D and 3D graphs in Python. It has been present since around 2008. Install it through pip. Go to the command line and run the following line:

pip install matplotlib

Let’s see the example.

Syntax and Selectors - CSS3 #1.2

A typical CSS code consists of a series of "rule-sets" for the different elements on your webpage. If you want to select a particular element on your webpage to style, how would you tell the browser? You will use some sort of name to specify them. The name you use to specify or select the element(s) you want to style is called a selector.

The syntax of a rule-set: