ValueError: Invalid literal for int() with base 10 in Python

invalid literal for int() with base 10

In this Python tutorial, we will discuss how to fix the error “ValueError: Invalid literal for int() with base 10” which comes in Python. ValueError: Invalid literal for int() with base 10 In Python, ValueError is a type of exception raised when a function receives an argument of the correct type but an inappropriate value. … Read more…

How to Square a List in Python

how to square a list in python

In this Python tutorial, I will show you how to square a list in Python with examples. Squaring a number simply means multiplying that number by itself. So, for example, the square of 2 is 4 (2 * 2), the square of 3 is 9 (3 * 3), and so on. Square a list of … Read more…

Naming Convention in Python [With Examples]

Naming Conventions in Python

This tutorial explains everything about naming conventions in Python. We will get to know Python global variable naming conventions, object naming conventions in Python, how to name a class in Python, etc. Everything we will see here with practical examples. Naming Conventions in Python Python naming conventions are a set of guidelines established in PEP8, … Read more…

How to Check if a List is Empty in Python?

Check if a List is Empty in Python

Python provides several ways to check if a list is empty or not. This tutorial will guide you through the different methods to check if a list in empty in Python. The methods we’ll explore include: Check if a List is Empty in Python Here are the 5 different ways to check if a list … Read more…

How to Register User with OTP Verification in Django

How to Register User with OTP Verification in Django Verified OTP Successful

In this Python tutorial, we will learn “how to register user with OTP verification in Django”. we will build a project ‘otpverification’ that takes user information and send the OTP then verifies the OTP entered by the user to register the user in the database. To create the project follow the below steps: Open a … Read more…

How to Create Signal in Django

How to Create Signals in Django Post Model

In this tutorial, we will know how to create signals in Django and its uses. Also, know about the type of signals. We will use the Django signals post_save and create a blog application that sends email notifications whenever a new blog post is created. What are signals in Django? Consider signals as a mechanism … Read more…

Python Django convert date time to string

Python django convert date time to string

In this Python Django tutorial, we are going to discuss how we can convert date, time, and datetime objects to strings. We will see this through examples. How to convert a date-time object into a string in python? To change over date time into a string we will utilize the strftime() technique which restores us … Read more…

Python Django import functions

Python Django import functions

In this Python Django tutorial, we will learn about the import functions in Django and will discuss in brief their uses and functionality in a Python Django project. What is import functions? Importing a function means we have already created a function in a file of our project and we want to import that function … Read more…

Django User Registration with Email Confirmation

Django user authentication app in Python

In this Python Django tutorial, we are going to learn about user login registration in the Django framework and after that, we will also send the confirmation email to confirm the user registration through email. How to create User Registration with Email Confirmation in Django? Here in this tutorial, we are going to create a … Read more…