Write a Python program to find the factorial of a given number using recursion.
Write a Python program to check if a given number is a prime number.
Write a Python program to reverse a given string.
Write a Python program to find the largest number in a list.
Write a Python program to count the number of vowels in a given string.
Write a Python program to calculate the sum of digits of a given number.
Write a Python program to print the Fibonacci sequence up to n terms.
Write a Python program to check if a given string is a palindrome.
Write a Python program to find the GCD (Greatest Common Divisor) of two numbers.
Write a Python program to convert a given decimal number to binary.
Write a Python program to find the LCM (Least Common Multiple) of two numbers.
Write a Python program to check if a given year is a leap year.
Write a Python program to find the second largest number in a list.
Write a Python program to count the occurrences of each word in a given text.
Write a Python program to remove duplicates from a list.
Write a Python program to merge two sorted lists into a single sorted list.
Write a Python program to find the sum of elements in a list.
Write a Python program to generate all prime numbers less than n.
Write a Python program to transpose a matrix.
Write a Python program to find the intersection of two lists.
Write a Python program to flatten a nested list.
Write a Python program to rotate a list by k positions.
Write a Python program to find the mode of a list of numbers.
Write a Python program to convert a given string to title case.
Write a Python program to find the longest word in a given text.
Write a Python program to find the common elements between two lists.
Write a Python program to implement a simple calculator that can perform addition, subtraction,
multiplication, and division.
Write a Python program to find the minimum element in a list.
Write a Python program to find the sum of the first n natural numbers.
Write a Python program to convert a given string to lowercase.
Write a Python program to find the union of two lists.
Write a Python program to count the number of occurrences of a character in a string.
Write a Python program to generate a random password of length n.
Write a Python program to remove the nth element from a list.
Write a Python program to find the median of a list of numbers.
Write a Python program to find the smallest element in a list.
Write a Python program to find the most frequent element in a list.
Write a Python program to calculate the area of a circle given its radius.
Write a Python program to find the sum of the elements on the main diagonal of a matrix.
Write a Python program to sort a list of tuples based on the first element.
Write a Python program to find the longest increasing subsequence in a list.
Write a Python program to find the sum of all even numbers in a list.
Write a Python program to check if a given string contains all the letters of the alphabet.
Write a Python program to find the longest common prefix among a list of strings.
Write a Python program to find the first non-repeating character in a string.
Write a Python program to count the number of prime numbers less than a given number.
Write a Python program to find the largest product of three numbers in a list.
Write a Python program to find the sum of the elements above the main diagonal of a matrix. Write
a Python program to determine if two strings are anagrams.
Write a Python program to find the number of ways to make change for a given amount using given
denominations.
Write a Python program to find the longest substring without repeating characters.
Write a Python program to merge overlapping intervals.
Write a Python program to convert an integer to its Roman numeral representation.
Write a Python program to find the maximum area of an island in a 2D grid.
Write a Python program to find the missing number in an array containing n distinct numbers from 0
to n.
Write a Python program to find the majority element in an array.
Write a Python program to generate all permutations of a list.
Write a Python program to find the number of islands in a 2D grid.
Write a Python program to determine if a given string is a valid palindrome, ignoring spaces and
punctuation.
Write a Python program to find the longest palindromic substring in a given string.
Write a Python program to find the minimum number of steps to reduce a number to zero.
Write a Python program to find the minimum window substring of a given string that contains all the
characters of another string.
Write a Python program to find the number of trailing zeroes in the factorial of a given number.
Write a Python program to find the median of two sorted arrays.
Write a Python program to find the kth largest element in an array.
Write a Python program to check if two strings are isomorphic.
Write a Python program to find the longest palindromic subsequence in a given string.
Write a Python program to find the smallest range that includes at least one number from each of
the given lists.
Write a Python program to determine if a given number is a power of two.
Write a Python program to find the longest consecutive sequence in an array.
Write a Python program to determine if a given string is a valid number.