| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains a collection of Python programs demonstrating various concepts and solutions. Below is a list of the included programs with links to their respective files:
Add Two Numbers: A program to compute the sum of two user-provided numbers.
Calculate Square Root: A program to compute the square root of a user-provided number using both manual and library methods.
Check Leap Year: A program to determine if a given year is a leap year.
Check Prime Number: A program to check if a given number is prime.
Quiz Game: A simple quiz game that asks the user a question and evaluates their response.
Swap Two Variables: A program to demonstrate two methods for swapping the values of two variables.
Two Sum [LeetCode]: A solution to the LeetCode "Two Sum" problem, which returns the indices of two numbers that add up to a target value.
Factorial Calculation: Program to calculate the factorial of a number using recursion.
Fibonacci Sequence: Program to generate the Fibonacci sequence up to a given number of terms.
Palindrome Check: Program to check if a string is a palindrome.
Count Vowels in a String: Program to count the number of vowels in a given string.
Reverse a String: Program to reverse the characters of a given string.
Sum of Digits in a Number: Program to calculate the sum of digits in a number.
Check Armstrong Number: Program to check if a number is an Armstrong number.
Binary to Decimal Conversion: Program to convert a binary number into its decimal equivalent.
Decimal to Binary Conversion: Program to convert a decimal number to binary.
GCD of Two Numbers: Program to calculate the greatest common divisor of two numbers.
LCM of Two Numbers: Program to calculate the least common multiple of two numbers.
Find the Largest Element in a List: Program to find the largest element in a given list.
Find the Smallest Element in a List: Program to find the smallest element in a given list.
Find the Sum of Elements in a List: Program to calculate the sum of all elements in a list.
Count Occurrences of a Character in a String: Program to count how many times a character appears in a string.
Find the Length of a List: Program to find the number of elements in a list.
Merge Two Lists: Program to merge two lists into one.
Find the Second Largest Element in a List: Program to find the second largest element in a list.
Check if a String is a Substring: Program to check if one string is a substring of another.
Transpose a Matrix: Program to transpose a given matrix (swap rows and columns).
Matrix Addition: Program to add two matrices element-wise.
Matrix Multiplication: Program to multiply two matrices.
Find the Determinant of a Matrix: Program to compute the determinant of a square matrix.
Find the Trace of a Matrix: Program to calculate the sum of the elements on the main diagonal of a matrix.
Linear Search: Program to implement linear search to find an element in a list.
Binary Search: Program to implement binary search to find an element in a sorted list.
Bubble Sort: Program to implement the bubble sort algorithm.
Insertion Sort: Program to implement the insertion sort algorithm.
Selection Sort: Program to implement the selection sort algorithm.
Quick Sort: Program to implement the quick sort algorithm.
Merge Sort: Program to implement the merge sort algorithm.
Check if a Number is Even or Odd: Program to check whether a number is even or odd.
Find Factorial Using Iteration: Program to find the factorial of a number using loops (non-recursive method).
Sum of Natural Numbers: Program to calculate the sum of the first N natural numbers.
Find the Power of a Number: Program to compute the power of a number (using pow or custom function).
Check if a String is an Anagram: Program to check if two strings are anagrams of each other.
Check Perfect Number: Program to check whether a given number is a perfect number (equal to the sum of its divisors).
Generate Random Numbers: Program to generate random numbers within a specified range using the random module.
Generate Fibonacci Series Using Recursion: Program to generate Fibonacci numbers using recursive function calls.
Check if a Number is a Palindrome: Program to check if a number reads the same forwards and backwards.
Remove Duplicates from a List: Program to remove duplicate elements from a list.
Find the Intersection of Two Lists: Program to find the common elements between two lists.
Find the Union of Two Lists: Program to merge two lists, removing duplicates.
Find the Sum of the Digits in a String: Program to extract digits from a string and calculate their sum.
Check if Two Strings are Rotations of Each Other: Program to check whether one string is a rotation of another string.
Find the Maximum and Minimum of a List Without Using Built-In Functions: Program to find the max and min values in a list without using built-in functions like max() or min().
Flatten a Nested List: Program to flatten a list that contains sublists into a single-level list.
Find the Most Frequent Element in a List: Program to find the element that appears the most times in a list.
Check if a List is Sorted: Program to determine whether a list is already sorted.
Find the Median of a List: Program to calculate the median value of a list of numbers.
Check if a List Contains All Unique Elements: Program to check if all elements in a list are unique.
Generate a Random Password: Program to generate a random password with a specified length using letters, numbers, and special characters.
Caesar Cipher Encryption: Program to encrypt a message using Caesar cipher.
Caesar Cipher Decryption: Program to decrypt a message encoded with Caesar cipher.
Check for Pangram: Program to check if a string contains all letters of the alphabet.
Count the Number of Words in a String: Program to count the number of words in a given string.
Find the Longest Word in a String: Program to find the longest word in a given string.
Find the Shortest Word in a String: Program to find the shortest word in a given string.
Count the Number of Sentences in a String: Program to count the number of sentences in a paragraph.
Find the Mode of a List: Program to find the mode (most frequent value) in a list.
Check if a Number is a Perfect Square: Program to determine if a number is a perfect square.
Solve Quadratic Equation: Program to solve a quadratic equation given its coefficients.
Check if a Number is a Strong Number: Program to check if a number is a "strong" number (sum of factorials of digits equals the original number).
[75 - 100 ] problems focusing on Object-Oriented Programming (OOP) concepts:
| Back | FazBrowse Home | New Git URL |