python

python

11 differences between Python 2 vs Python 3 with examples

11 differences between Python 2 vs Python 3 with examples. Python 2 was discontinued in 2020 and Python 3 is the currently supported version. This post will show you the differences between Python 2 and Python 3.

Read
python

Python dictionary pop method explanation with examples

Python dictionary pop method explanation with examples. We will learn the definition of python dictionary pop method and different examples to use it.

Read
python

Python dictionary fromkeys method

Python dictionary fromkeys method explanation with examples. fromkeys method is used to create a new dictionary from a sequence of elements.

Read
python

Python program to merge a dictionary to a tuple

Python program to merge a dictionary to tuple. We will learn to do this in two different ways, by converting the tuple to a list and by using the + operator.

Read
python

Python numpy square method explanation with examples

Python numpy square method explanation with examples. square method is used to find the squares of each element in an array. This post will show you how to use square method with examples.

Read
python

2 ways to check if a number is Pronic number or not in Python

Python program to check if a number is Pronic number or not. We will write a program that will take a number as input from the user and print one message if it is a Pronic number or not.

Read
python

Python program to check if a number is a disarium number or not

Python program to check if a number is disarium number or not. We will learn two different ways to check if a user-input number is Disarium.

Read
python

Python ticket booking program with JSON data

Write a ticket booking program in python that reads the data from JSON files. This program can book tickets for a movie, for a screen at a specific time for a specific number of tickets.

Read
python

Python rstrip() method explanation with example

Python string rstrip method is used to delete trailing whitespaces or any other trailing characters from a string. This post will show you how to use rstrip method with examples.

Read
python

Python string lstrip() method explanation with example

Python string lstrip method is used to delete leading whitespaces or any other leading characters from a string. This post will show you how to use lstrip method with examples.

Read