×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

Python

Python is a programming language that has been released in 1991 but is being widely used recently. It is widely being considered as the first choice for domains like Machine learning because of its abstraction.

Software Engineering

Basic Bits hacks in Python

We have covered several basic bit hacks in Python which everyone should know to write optimized code. Tricks include find sign of an integer, negate an integer and more.

Shubham Sood Shubham Sood
Software Engineering

Cache in Python

We have explored caching by demonstrating it with a Python code example where intermediate results are cached and improved the overall performance. This is done through functools.lru_cache in Python.

Yash Shah
Software Engineering

Pass Variable By Reference in Python

In this article, we have explored how to pass a variable by reference to a function in Python. We have demonstrated the ideas by Python code snippets.

Boddu Venkata Sai Ganesh
Software Engineering

Different Dictionaries in Python

There are 4 types of dictionaries in Python that are OrderedDict, DefaultDict, ChainMap and Counter.

Boddu Venkata Sai Ganesh
Software Engineering

A static Portfolio Website in Django

In this article, we will be creating a static Portfolio website using Django and understand the structure of the Django framework. This article would cover all the commands

Pulkit Sharma
Software Engineering

Dictionary in Python

A dictionary is a collection of key:value pairs which are unordered, changeable and indexed. In Python, dictionaries are written with curly brackets, and they have keys and values in them.

Ganesh Bagaria Ganesh Bagaria
Software Engineering

Web Scraping a CodeForces profile in Python

In this article, we will inspect a Codeforces profile’s site structure and scrape the required profile data. We will use the Beautiful Soup and Requests libraries of python for the purpose.

Avishi Gupta
Software Engineering

Developing static webpage application using Flask with no database

In this article, we have built basic static webpage application in Flask with no database. This results in a high performance webpage with a lightweight web server which is the direct result of not adding a database.

Tanishqa
Software Engineering

OrderedDict objects in Python

An ordereddict is a subclass of the dictionary object in Python. It supports two methods: popitem() and move_to_end(). We have explained it in depth.

Victor O. Alvarez Victor O. Alvarez
Software Engineering

Different ways to sort a counter in Python

In this article, we have explored Different ways to sort a counter in Python which includes using counter.most_common(), sorted() to solve the keys and sort values in pair.

Riddhi Athreya
Software Engineering

All about Python Dictionary

In this article, you will learn everything about Python dictionaries which is an useful in-built data structure frequently used to handle data. Dictionaries are unordered mapping for storing items.

Divyam Jain
Software Engineering

Application Structure of Django

Django is one of most widely used Python web development framework and powers several popular applications. In this article, we have explored the structure of a Django web application. It follows Model, Template and View (MTV).

Devansh Chaubey Devansh Chaubey
Software Engineering

Create Login Page in Flask using sessions

There are many ways to create user login in Flask like using flask-login or JWT and many more. But using sessions is the simplest to logged the user in or out which we have explored in this article.

Lakshay Singhal
Software Engineering

Override __getattr__ in Python

Methods like __getattr__, is called when an atrribute is not found in the usual place(i.e. it is not an instance attribute nor is it found in the class tree for self).

Ayush Sonare
Software Engineering

NamedTuples objects in Python

Using NamedTuples in Python helps you self-document your code conveying meaning to each field. Its methods allow you to work more easily with data.

Victor O. Alvarez Victor O. Alvarez
Software Engineering

Class based Generic Views in Django

Class-Based Generic Views are a superior set of Built-in views that are used for the implementation of selective view strategies such as Create, Retrieve, Update, Delete.

Vinayak sharma Vinayak sharma
Software Engineering

Creating JWT Authentication in REST API in Flask

JSON Web Token is a string which is sent in HTTP request from the browser to the server to validate authenticity of the client. We have demonstrated how to create JWT Authentication in REST API in Flask.

Tanishqa
Software Engineering

.norm() method of Numpy library in Python

In this article, you will know about vector norm and the method to apply them in python by using the Linear Algebra module of the NumPy library. In general, three types of norms are used: L1 norm, L2 norm and Vector Max Norm

Abhijit Tripathy Abhijit Tripathy
Software Engineering

Counter Objects in Python

In this article, we have explored Counter Objects in Python in depth. Counter is a part of collections module and is a subclass of a dictionary which is used to keep a track off elements and their count.

SRISTI DAKSHIT
Software Engineering

Different container Data Structures of Python’s Collections Module

In this article, we have explored the different data structures available in Collections module of Python which includes named tuple, counter, deque, default dictionary, ordered dictionary and chainmap.

Anushka Lal
Software Engineering

Defaultdict (Default Dictionary) in Python

A default dictionary is a dictionary that automatically assigns default values to keys, if queried keys are not present. The default dictionary is Python's intelligent hash table.

Ankur Chattopadhyay Ankur Chattopadhyay
Software Engineering

Designing Complex Numbers using Classes in Python

We have explored the concept by utilizing built-in mathematical operations to create our own complex Number utility in Python using Classes (OOP concepts).

Lyndi Castrejon Lyndi Castrejon
Software Engineering

Solving Linear Programming problems in Python using cvxpy library

Linear programming requires that all the mathematical functions in the model be linear functions. We have solved linear programming problems in Python using cvxpy library.

Arathy Rose Tony
Software Engineering

Online C Code Compiler using Flask

In this article, we have explored how we can develop an online C Programming language compiler using Flask (a Python web framework). It can be extended to support any programming language.

Devansh Thapa Devansh Thapa
Software Engineering

Handling date and time in Python using datetime module

We explore the datetime module provided in Python programming language and how to use its various functionalities in implementation along with various types of objects and classes within it.

Reetika Poosarla
OpenGenus IQ © 2025 All rights reserved ™
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship