Python - Basic Articles
Some of the string methods are covered in the set 3 below String Methods Part- 1 More methods are discussed in this article 1. len()… Read More
Some of the string basics have been covered in the below articles Strings Part-1 Strings Part-2 The important string methods will be discussed in this article1. find(“string”, beg,… Read More
Python programming language provides the following types of loops to handle looping requirements. Python While Loop Until a specified criterion is true, a block of… Read More
A Generator in Python is a function that returns an iterator using the Yield keyword. In this article, we will discuss how the generator function… Read More
Python Tuple is a collection of objects separated by commas. In some ways, a tuple is similar to a Python list in terms of indexing,… Read More
By default Python‘s print() function ends with a newline. A programmer with C/C++ background may wonder how to print without a newline. Python’s print() function… Read More
In C/C++ and Java, we can write empty function as following // An empty function in C/C++/Java void fun() { } In Python, if we… Read More
Python Module is a file that contains built-in functions, classes,its and variables. There are many Python modules, each with its specific work. In this article,… Read More
  Introduction  This tutorial explains how to carry out an ajax request in the Django web framework. We will create a simple post-liking app as… Read More
Previous Python Articles (Set 1 | Set 2 | Set 3 | Set 4 | Set 5) This article is focused on command line arguments as… Read More
This is a question asked quite often as in which language should be preferred to be efficient in competitive programming. It is something one should… Read More
Consider below Python program.  Python3 # A Python program to demonstrate that we can store # large numbers in Python    x = 10000000000000000000000000000000000000000000 x… Read More
In this article, we will see some important differences between Python 2.x and Python 3.x with the help of some examples. Differences between Python 2.x… Read More
For instance, in C we can do something like this:  C // Reads two values in one line scanf("%d %d", &x, &y) One solution is… Read More
In Python, the str() and repr() functions are used to obtain string representations of objects. While they may seem similar at first glance, there are… Read More
Creating a String Strings in Python can be created using single quotes or double quotes or even triple quotes. # Python Program for # Creation… Read More
For strings in python, boolean operators (and, or, not) work. Let us consider the two strings namely str1 and str2 and try boolean operators on… Read More
1. Strings are Immutable Once a string is defined, it cannot be changed. # Python3 program to show that  # string cannot be changed   … Read More
Division Operators allow you to divide two numbers and return a quotient, i.e., the first number or number at the left is divided by the… 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