Category: python-short-tutorial
Python | Asking the user for input until they give a valid response
In this article, we are going to create a Python program that will be asking the user for input until they give a valid response….
Python | How to iterate through two lists in parallel?
Iterating on one list is simple and can be done by writing a for loop, but how can we iterate through two lists in parallel?…
Python | How to sort a dictionary by value?
Sorting a dictionary by value is a common task in Python and we will see different ways of how can accomplish this task. Also, sorting…
Python | Remove items from a list while iterating
Many times, it maybe happened that you are trying to process through a list and you don’t want some elements to be part of it….
Python | How to get dictionary keys as a list
In this article, you will learn 6 different methods to get dictionary keys as a list in python. These methods include various Python programming concepts…
How to represent Enum in Python?
Do you know what Enum means in the programming field and how to represent Enum in Python? Let’s clear all of Enum today. Enum short…
5 methods | Flatten a list of lists | Convert nested list into a single list in Python
You might often want to Flatten a list of lists or convert a list of lists into a single or tuple. For eg., you might…
What does if __name__ == __main__ do in Python?
Introduction Most of us have come across the if __name__ == “__main__” in Python while doing a program or we specifically write this function while…
Python | CRUD operations in MongoDB
Today in this article, we will talk about some operations that can be performed on the database using the queries of MongoDB. In this article…
Create your own ChatGPT with Python
ChatGPT is a product of openai, currently ChatGPT is the most famous product of openai but there are many other products. In this article, we…