This repository contains a collection of Python programs designed for practice and learning. Each program is a simple Python script that covers a specific topic or problem. This README serves as an index to help you navigate and use the programs effectively.
- Programs
- 1. Hello, World!
- 2. Calculate the Sum
- 3. Check Even or Odd
- 4. Basic Calculator
- 5. Area of a Circle
- 6. Convert Celsius to Fahrenheit
- 7. Check Leap Year
- 8. Simple Interest Calculator
- 9. Check Prime Number
- 10. Factorial of a Number
- 11. Print Fibonacci sequence
- 12. Reverse a String
- 13. Check Palindrome
- 14. Count Vowels and Consonants
- 15. Find Maximum and Minimum
- 16. List Comprehension
- 17. Check Anagrams
- 18. Remove Duplicates
- 19. Linear Search
- 20. Binary Search
- 21. Bubble Sort
- 22. Selection Sort
- 23. Insertion Sort
- 24. Factorial Using Recursion
- 25. Calculate GCD
- 26. Generate Prime Numbers
- 27. File Reading and Writing
- 28. Count Words in a String
- 29. Convert Decimal to Binary
- 30. Convert Binary to Decimal
- 31. Find the Length of a List
- 32. Calculate LCM
- 33. Check Armstrong Number
- 34. Generate Random Number
- 35. Calculate Exponent
- 36. Check Perfect Number
- 37. Count Characters in a String
- 38. Calculate Median
- 39. Check Punctuation
- 40. Calculate Area of a Triangle
- 41. Check Quadratic Equation Roots
- 42. Generate Random Password
- 43. Calculate Simple Moving Average
- 44. Check Perfect Square
- 45. Convert Kilometres to Miles
- 46. Check a Number is Positive, Negative, or Zero
- 47. Calculate Discount
- 48. Generate a List of Primes
- 49. Calculate Area of a Rectangle
- 50. Calculate BMI (Body Mass Index)
- 51. Two-Wheelers and Four-Wheelers Manufacturing
- 52. Parking Spaces
- 53. Maximum Guests on Cruise
- 54. Eligibility to Vote
- 55. Draw a Colorful Pattern
Print "Hello, World!" to the console.
Calculate and print the sum of two numbers.
Determine if a number is even or odd.
Build a basic calculator that performs addition, subtraction, multiplication, and division.
Calculate and print the area of a circle.
Convert a temperature in Celsius to Fahrenheit.
Determine if a year is a leap year.
Calculate simple interest given the principal, rate, and time.
Determine if a number is prime or not.
Calculate the factorial of a given number.
Generate and print the Fibonacci sequence up to a specified number of terms.
Reverse a given string.
Determine if a string is a palindrome.
Count the number of vowels and consonants in a string.
Find the maximum and minimum values in a list of numbers.
Use list comprehension to create a list of squares of numbers from 1 to 10.
Determine if two strings are anagrams of each other.
Remove duplicates from a list.
Implement linear search to find an element in a list.
Implement binary search to find an element in a sorted list.
Implement the bubble sort algorithm to sort a list of numbers.
Implement the selection sort algorithm to sort a list of numbers.
Implement the insertion sort algorithm to sort a list of numbers.
Calculate the factorial of a number using recursion.
Calculate the greatest common divisor (GCD) of two numbers.
Generate and print prime numbers within a given range.
Read data from a file, manipulate it, and write it back to a new file.
Count the number of words in a given string.
Convert a decimal number to binary.
Convert a binary number to decimal.
Calculate the length of a list without using the built-in len function.
Calculate the least common multiple (LCM) of two numbers.
Determine if a number is an Armstrong number.
Generate a random number within a specified range.
Calculate the result of raising a number to a specified exponent.
Determine if a number is a perfect number.
Count the occurrences of each character in a string.
Calculate the median of a list of numbers.
Determine if a character is a punctuation symbol.
Calculate and print the area of a triangle given its base and height.
Determine the roots of a quadratic equation.
Generate a random password of a specified length.
Calculate the simple moving average of a list of numbers.
Determine if a number is a perfect square.
Convert a distance in kilometres to miles.
Determine if a number is positive, negative, or zero.
Calculate the final price after applying a discount to an item's price.
Generate a list of prime numbers up to a specified limit using the Sieve of Eratosthenes.
Calculate and print the area of a rectangle given its length and width.
Calculate and categorize BMI based on weight and height inputs.
The task is to find how many two-wheelers and four-wheelers need to manufacture as per the given data.
The task is to find the index of the row(R) in the parking that has the most parking spaces full (1).
The task is to find the maximum number of guests present on the cruise at any given instance within T hours.
Make a program to check if a person is eligible to vote or not in India.
Create a colorful pattern using the Turtle graphics library.
You can clone this repository and explore each program individually. Use these programs to practice Python and learn different concepts. Follow the specific program's instructions in its source code.
If you have additional Python practice programs or improvements to existing ones, feel free to contribute to this repository by opening an issue or creating a pull request. Your contributions are highly appreciated, and they will help others learn and improve their Python skills.
Happy coding!