# Category Archives: Python Programs

Given a list of numbers, write a Python program to count positive and negative numbers in a List. Example: Input: list1 = [2, -7, 5,… Read More
Given a list of numbers, write a Python program to print all positive numbers in given list. Example: Input: list1 = [12, -7, 5, 64,… Read More
Given a list of numbers, write a Python program to find the sum of all the elements in the list.Example:   Input: [12, 15, 3, 10]… Read More
Given a list of numbers, write a Python program to remove multiple elements from a list based on the given condition. Example:  Input: [12, 15,… Read More
Given a list of numbers, write a Python program to count Even and Odd numbers in a List. Example: Input: list1 = [2, 7, 5,… Read More
Given a list of numbers, the task is to write a Python program to find the largest number in given list. Examples: Input : list1… Read More
Given a list of numbers, the task is to write a Python program to find the second largest number in the given list. Examples:  Input:… Read More
Given a list of numbers, the task is to write a Python program to find the smallest number in given list.Examples:  Input : list1 =… Read More
Given two positive integers start and end. The task is to write a Python program to print all Prime numbers in an Interval. Definition: A… Read More
Given two numbers num1 and num2. The task is to write a Python program to find the addition of these two numbers. Examples: Input: num1… Read More
Given a positive integer N, The task is to write a Python program to check if the number is prime or not.Definition: A prime number… Read More
Google Authentication and Fetching mails from scratch mean without using any module which has already set up this authentication process. We’ll be using Google API… Read More
Write a program in Python to convert standard POS(product of sums) form to standard SOP(sum of products) form. Assumptions: The input POS expression is standard.… Read More
Langton’s Ant is a 4-state two-dimensional universal Turing machine. It was invented by Chris Langton in 1986. It is basically an ant, sitting on a… Read More
One-time Passwords (OTP) is a password that is valid for only one login session or transaction in a computer or a digital device. Now a… Read More