## Find number from given list for which value of the function is closest to A

Given a function F(n) = P – (0.006 * n), where P is given. Given a list of integers and a number, . The task… Read More »

- Python List
- How to print without newline in Python?
- Stormer Numbers
- Program to print ASCII Value of a character
- Python Program for QuickSort
- Python Program for Bubble Sort
- Python | Catching the ball game
- Python Program for Merge Sort
- Linear Regression Using Tensorflow
- Generating Word Cloud in Python
- Python Program to find sum of array
- Python Program for Sieve of Eratosthenes
- Python Program to Reverse a linked list
- Python | Program to print duplicates from a list of integers
- Python | Find current weather of any city using openweathermap API
- Python Program for Selection Sort
- Python program to convert time from 12 hour to 24 hour format
- Rename multiple files using Python
- Hangman Game in Python
- Python Program for Tower of Hanoi
- Python program to find N largest elements from a list
- Python | Program to check if a string contains any special character
- Python Django | Google authentication and Fetching mails from scratch
- Python implementation of automatic Tic Tac Toe game using random number
- Python program to split and join a string
- All palindrome numbers in a list
- Python Program to find largest element in an array
- Python Program to check if given array is Monotonic
- Binary Search (bisect) in Python
- Determining the inconsistently weighted object

Given a function F(n) = P – (0.006 * n), where P is given. Given a list of integers and a number, . The task… Read More »

Given a dictionary in Python, write a Python program to find the sum of all Items in the dictionary. Examples: Input : {‘a’: 100, ‘b’:200,… Read More »

Given a decimal number N, the task is to check if a number has consecutive zeroes or not after converting the number to its K-based… Read More »

Given a list, write a Python program to swap first and last element of the list. Examples: Input : [12, 35, 9, 56, 24] Output… Read More »

Given a list in Python and provided the positions of the elements, write a program to swap the two elements in the list. Examples: Input… Read More »

Given an array of N elements and an integer M. Now, the array is modified by replacing some of the array elements with -1. The… Read More »

Given three angles. The task is to check if it is possible to have a triangle of positive area with these angles. If it is… Read More »

Given a list of words in Python, the task is to remove the Nth occurrence of the given word in that list. Examples: Input: list… Read More »

To implement an algorithm to determine if a string contains all unique characters. Examples: Input : s = “abcd” Output: True “abcd” doesn’t contain any… Read More »

Here, We’ll be making Indian Flag in Python using Spyder tool which is a part of Anaconda interface. It is the beginner’s practice problem for… Read More »

The Sierpinski Carpet is a plane fractal curve i.e. a curve that is homeomorphic to a subspace of plane. It was first described by Waclaw… Read More »

Given an array A containing n integers. The task is to check whether the array is Monotonic or not. An array is monotonic if it… Read More »

Given two sentences as strings A and B. The task is to return a list of all uncommon words. A word is uncommon if it… Read More »

Given a list of numbers of list, write a Python program to create a list of tuples having first element as the number and second… Read More »

Given starting and end points, write a Python program to print all even numbers in that given range. Example: Input: start = 4, end =… Read More »