×
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

Learn to use Dask Dataframes

Dask DataFrame is composed of many smaller Pandas DataFrames that are split row-wise along the index. An operation on a single Dask DataFrame triggers many operations on the Pandas DataFrames that constitutes it.

Soumya Chopra
Software Engineering

Working with HTTP requests in Python

The internet is made up of a bunch of resources hosted on different servers and interact using HTTP. What is HTTP and how it works? Working with different HTTP requests in Python using the requests library Understanding the information that web resources interact with and use it programmatically

Shreya Gupta Shreya Gupta
Software Engineering

Docstrings in Python

Docstrings in Python like comments provide us a convenient way of associating documentation to the source code. Docstrings are not stripped but are retained through out the runtime of the program. They specify what the function does not how it does. Docstrings are used in functions, classes

Tanmayi Patibandla Tanmayi Patibandla
Software Engineering

How to handle Exceptions in Python?

We should handle the exception and prevent the program from crashing and this is supported in Python. We will learn about try except block, the optional else block and Finally block which makes sure a code section runs irrespective of exceptions.

Sonal Agrawal Sonal Agrawal
Software Engineering

For Loop in Python

We are going to discuss about the for loop in Python and answer the following questions: Can a For loop print the elements of a List and Tuple? Can a For Loop be used for a String? Can for loops be nested? How to use Range function in For loop? How are Continue and Break Statements used in For Loop?

Tanmayi Patibandla Tanmayi Patibandla
Software Engineering

Yield in Python

The yield statement suspends function’s execution and sends a value back to caller, but retains enough state to enable function to resume where it is left off. What are generators? What is yield? Difference between return and yield Where is yield used?

Gautam Aggrawal Gautam Aggrawal
Software Engineering

Explaining Classes in Python by designing a Dog

Classes are the building blocks of object oriented programming and since python is an object oriented language it supports classes implicitly. Classes give us a way to model real world objects. They combine data and functions into one entity.

Sonal Agrawal Sonal Agrawal
Python

Implementing User Authentication in Django

Django comes with a built-in user authentication system, which handles objects like users, groups, user-permissions and some cookie-based user sessions. Django’s User authentication not only authenticates (verifying the user identity) the user but also authorizes him.

Gautam Aggrawal Gautam Aggrawal
Python

Lambda functions in Python

In Python, anonymous function is a function that is defined without a name. While normal functions are defined using the def keyword, in Python anonymous functions are defined using the lambda keyword. Hence, anonymous functions are also called lambda functions.

Kavita Bisht
Python

Range Function in Python

Range is an inbuilt function in python that is generally used to create a sequence of numbers. It can accept upto three arguments to modify the output accordingly We will look into its functionalities and any limitations that range has. Let's start from basics and build up our understanding of range

Sonal Agrawal Sonal Agrawal
Python

Reading and Writing Text Files in Python

This post will cover how to work with text files specifically in Python. We covered Opening a file, Reading a file: read() and readlines(), Writing to files, keeping track of pointers: tell() and seek(), Closing a file and File attributes

Sonal Agrawal Sonal Agrawal
Python

if else statement in Python

We will take a deep look into if else, else if (elif), nested if else and the possible condition statements used in if else in Python. if else is a program control statement and is widely used in almost all programming languages

Sonal Agrawal Sonal Agrawal
Python

Tuple in Python

Tuples in Python are used to hold together multiple objects. Tuples are defined by specifying items separated by commas within an optional pair of parentheses. Any set mutiple comma-separated symbols written default to tuples. Tuples are immutable

Shreya Gupta Shreya Gupta
Machine Learning (ML)

Implementing CNN in Python with Tensorflow for MNIST digit recognition

In this article, we will develop and train a convolutional neural network (CNN) in Python using TensorFlow for digit recognifition with MNIST as our dataset. We will give an overview of the MNIST dataset and the model architecture we will work on before diving into the code.

Jash Sheth
Machine Learning (ML)

Logistic Regression in Python with TensorFlow

We will walk you though the difference between Linear and Logistic Regression and then, take a deep look into implementing Logistic Regression in Python using TensorFlow. We used the Iris dataset and have trained and plotted the loss function and the training and test accuracy across epochs

Leandro Baruch Leandro Baruch
Machine Learning (ML)

Linear Regression in Python with TensorFlow

In this guide, we will implement Linear Regression in Python with TensorFlow. Linear Regression is a simple yet effective prediction that models any data to predict an output based on the assumption that it is modeled by a linear relationship.

Leandro Baruch Leandro Baruch
Python

Create arrays in Numpy

Numpy functions that we have covered are arange(), zeros(), ones(), empty(), full(), eye(), linspace() and random(). Creating and managing arrays is one of the fundamental and commonly used task in scientific computing. Numpy is a Python library which adds support for several mathematical operations

OpenGenus Tech Review Team OpenGenus Tech Review Team
Software Engineering

Control Flow in Python

In Control Flow, there are certain conditions which we put with the help of predefined syntaxes and the program then run in that order and chooses the condition as a output. Control statements include conditional and iteration statements like if else, while, do while and if elif and for loop

Sanyam J
Python

A Pythonic Way of PDF to Image Conversion

Can a PDF be converted into a sequence of images through a program? If so which is the best technique to perform this conversion? This article answers the above questions.

Venkata Rathnam Muralidharan
Machine Learning (ML)

Building a Convolution Neural Network (CNN) for handwritten digit recognition in Python using Keras

We built a Convolution Neural Network (CNN) for handwritten digit recognition from scratch in python. We will be using Keras API with TensorFlow backend and use handwritten digits dataset from Kaggle.

Piyush Mishra
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