Asking the user for input until they give a valid response in Python
Posted in allcategorites python-error 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….

Continue Reading
Python | How to iterate through two lists in parallel?
Posted in allcategorites python-short-tutorial

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?…

Continue Reading
How to sort a dictionary by value in Python?
Posted in allcategorites python-short-tutorial

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…

Continue Reading
Remove items from a list while iterating in Python
Posted in allcategorites python-short-tutorial

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….

Continue Reading
How to get dictionary keys as a list in Python?
Posted in allcategorites python-short-tutorial

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…

Continue Reading
How to represent Enum in Python?
Posted in allcategorites python-short-tutorial

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…

Continue Reading
Posted in allcategorites python-short-tutorial

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…

Continue Reading
What does if "__name__" == "__main__" do in Python?
Posted in allcategorites python python-short-tutorial tutorial

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…

Continue Reading
Posted in allcategorites python python-short-tutorial tutorial

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…

Continue Reading
Create your own ChatGPT with Python
Posted in allcategorites general-python gui python projects programs in python python projects python simple programs python-short-tutorial

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…

Continue Reading