Python - Basic Articles
An IP(Internet Protocol) address is an identifier assigned to each computer and other device(e.g., router, mobile, etc.) connected to a TCP/IP network that is used… Read More
Given few lines of code inside a string variable and execute the code inside the string. Examples:   Input: code = """ a = 6+5 print(a)""" Output:… Read More
Here we will be making a simple calculator in which we can perform basic arithmetic operations like addition, subtraction, multiplication, or division. Python Program to… Read More
We are given a string and we need to reverse words of a given string Examples: Input : str =" geeks quiz practice code" Output… Read More
exec() function is used for the dynamic execution of Python programs which can either be a string or object code. If it is a string,… Read More
Python has a built-in Python Calendar module to work with date-related tasks. Using the module, we can display a particular month as well as the… Read More
Given an array of size n, generate and print all possible combinations of r elements in array. Examples: Input : arr[] = [1, 2, 3,… Read More
Wind-chill or Windchill is the perceived decrease in air temperature felt by the body on exposed skin due to the flow of air. The effect… Read More
Class attributes Class attributes belong to the class itself they will be shared by all the instances. Such attributes are defined in the class body… Read More
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
In this article, we will try to understand Switch Case in Python (Replacement). What is the replacement of Switch Case in Python? Unlike every other… Read More
How to get prime numbers quickly in python using library functions?Library functions always make our code easy so here we are going to discuss some… Read More
Given an unsorted array of n integers which can contains n integers. Count frequency of all elements that are present in array. Examples: Input :… Read More
Given an array of positive and negative numbers, arrange them such that all negative integers appear before all the positive integers in the array. The… Read More
This article focus on creating a stopwatch using Tkinter in python Tkinter : Tkinter is the standard GUI library for Python. Python when combined with Tkinter… Read More
Generating a random number has always been an important application and having many uses in daily life. Python offers a function that can generate random… Read More
Python is a high-level, interpreted, and general-purpose dynamic programming language that focuses on code readability. It generally has small programs when compared to Java and… Read More
The Highest Common Factor (HCF), also called gcd, can be computed in python using a single function offered by math module and hence can make… Read More
Not many people know, but python offers a direct function that can compute the factorial of a number without writing the whole code for computing… Read More
Python pow() function returns the result of the first parameter raised to the power of the second parameter. Syntax of pow() Function in Python Syntax:… Read More