# Category Archives: Python Programs

Given an array, the task is to write a Python program to remove the last element in Python.  Example: Input: [“geeks”, “for”, “geeks”] Output: [“geeks”,â€¦ Read More
Boolean datatype is the built-in data type in Python. It represents the True or False values. Like 0<1 is True and 7>10 is False. Theâ€¦ Read More
Given a Negative Integer, the task is to write a Python program to convert the integer into binary format.  Examples: Input: -14 Output: -1110 Input:â€¦ Read More
Given a list of numbers, write a Python program to find the sum of all the elements in the list. Examples: Input: arr = [2,4,5,10],â€¦ Read More
Given a number N and power P. The task is to write a Python program to find the power of a number using recursion. Definition:â€¦ Read More
Given a character, check if it is vowel or consonant. Vowels are ‘a’, ‘e’, ‘i’, ‘o’ and ‘u’. All other characters (‘b’, ‘c’, ‘d’, ‘f’â€¦ Read More
In this article, we will look into how to print out the decimal equivalents of 1/2, 1/3, 1/4,…,1/10 using Python. Example: Input number: 2Output :â€¦ Read More
In this article, we will describe how you can capture each frame from the video and also resize them according to your needs. What weâ€¦ Read More
In this article, We are going to learn how to install and use rich packages in Python. RIch is a python package for creating someâ€¦ Read More
Given the integer N, the task is to print all the numbers less than N, which are divisible by 3 and 5.Examples :  Input :â€¦ Read More
Given a list, the task is to write a Python Program to square each odd number in a list using list comprehension. Python â€“ Listâ€¦ Read More
Given a complex number, the task is to write a Python Program to return the real part of the complex argument. What is a Complexâ€¦ Read More
In this article, we will explore the basics of pipx python CLI package tool. Pipx is a tool in Python that allows us to runâ€¦ Read More
In this article, we will be looking at the program to get the file name from the given file path in the Python programming language.â€¦ Read More
In this article, we will see How To Get a Class Name of a class instance. For getting the class name of an instance, weâ€¦ Read More