Image for post
Image for post

Hello guys, in this post we are going to learn about Dictionaries in python and its Built-in methods. Now let’s start with the most simple question,

What is a dictionary in python ?

A dictionaries is an unordered, changable and indexed collection. A Dictionary is a key-value pair similar to json, here is an example of a dictionary,

student = {
"name" : "Jhon Doe",
"age" : 25,
"grades" : {
"maths" : [100, 98],
"science" : [95, 92],
"playsTennis" : True,

As you may have seen in the example that the student as a dictionary can have literally any valid data type as value…

Image for post
Image for post

What are cookies ?

Cookies are a kind of storage, but a very small storage. It is mainly used to store small information such as csrf_token, login credentials ( encrypeted ), preferences, site statics and/or user activities. By using cookies one can provide an immersive experice to the users of the websites by making the website more personalized for them.

How to use “Cookies” in Flask ?

In flask using cookies is super simple. In flask cookies are Immutable Dictionary, we can also call as a dictionary. To view the value of the request.cookies attribute it will return an dictionary object. Let’s see an understand it with an example,


Image for post
Image for post
Photo by Alireza Shojaei on Unsplash

What is Flask ?

Flask is a micro web framework. It is a pallets project initiative. It is an bare bones framework and is build on top of a WSGI Library Werkzeug. Don’t let word micro hurt your brain cells it can do whatever a big framework like Django can do but like Django it doesn’t has a way to do everything flask way and it has all the packages for authentication and what not but they are separate from the main flask package.

Building First Flask Application

Building a flask application is super easy.

from flask import Flask # Importing Flaskapp = Flask(__name__) # Initializing Flask…

Django for Begginers.
Django for Begginers.
Photo by Clément H on Unsplash

In this post we will be installing Django and creating a basic project with it. This blog will be small.


To install django we will be using pip. Use the following commands below,

pip install django

That’s it django is installed, now lets create a new django application. This one will be bare bones.

Navigate to the directory you want to create your django project and enter the following commands.

$ django-admin startproject mysite

In above code django-admin is a command line tool that gets installed with django on your system and has a function startproject which creates a new…

Ketan Irale Patil

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store