Skip to content

Category Archives: Python

1. Strings are Immutable Once a string is defined, it cannot be changed. # Python3 program to show that  # string cannot be changed   … Read More
Consider the below statements in Python.  Python3 # A Python program to demonstrate the use of # "//" for integers print (5//2) print (-5//2) Output:… Read More
Truncate in Python There are many built-in modules in python. Out of these module there is one interesting module known as math module which have… Read More
All objects share class or static variables. An instance or non-static variables are different for different objects (every object has a copy). For example, let… Read More
Permutation is an arrangement of objects in a specific order. Order of arrangement of object is very important. The number of permutations on a set… Read More
We have discussed different approaches to swap two integers without the temporary variable. How to swap into a single line without using the library function?Python:… Read More
In Python 3.X, the print statement is written as print() function. Below code in Python 3.X that shows the process of printing values in Python. … Read More
Project idea:The aim of this project is to create a game in python in which the user is presented with an anagram of a word… Read More
In the previous article, we read about the basics of Python. Now, we continue with some more python concepts. Strings in Python A string is a… Read More
Introduction to Python has been dealt with in this article. Now, let us begin with learning python. Running your First Code in Python Python programs are… Read More
If you’re familiar with Python, you would have known Increment and Decrement operators ( both pre and post) are not allowed in it. Python is… Read More
Python is a widely used general-purpose, high level programming language. It was created by Guido van Rossum in 1991 and further developed by the Python… Read More
Most of the languages including C, C++, Java and Python provide the boolean type that can be either set to False or True.Consider below programs… Read More
Python designed by Guido van Rossum at CWI has become a widely used general-purpose, high-level programming language. Prerequisites: Knowledge of any programming language can be a plus. Reason for… Read More
Given a string and a positive integer d. Some characters may be repeated in the given string. Rearrange characters of the given string such that… Read More