Skip to content

Saking-tech/100_0_Level_programs_in_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Projects

This repository contains various Python projects, ranging from beginner to intermediate level. Below is a description of each project and its functionality.

1. Program to Add Two Numbers in Python

A simple program that takes two numbers as input from the user and displays their sum.

2. Print Hello World

A basic program that prints "Hello World!" to the console.

3. Find the Square Root

A program to find the square root of a given number using the math module.

4. Calculate the Area of a Triangle

This program calculates the area of a triangle when the base and height are provided.

5. Solve Quadratic Equation

A program to solve a quadratic equation and find its roots using the discriminant formula.

6. Swap Two Variables

This project swaps the values of two variables without using a temporary variable.

7. Generate a Random Number

A simple program to generate a random number between a specified range using the random module.

8. Convert Kilometers to Miles

This program converts a given distance in kilometers to miles.

9. Convert Celsius to Fahrenheit

A simple temperature converter that converts Celsius to Fahrenheit.

10. Check if a Number is Positive, Negative, or Zero

This program checks whether a given number is positive, negative, or zero.

11. Check if a Number is Odd or Even

A program to determine if a number is odd or even.

12. Check Leap Year

This project checks if a given year is a leap year.

13. Find the Largest Among Three Numbers

A program to find the largest number among three user-provided numbers.

14. Check Prime Number

This project checks if a given number is a prime number.

15. Print All Prime Numbers in an Interval

A program that prints all prime numbers within a specified range.

16. Find the Factorial of a Number

This program calculates the factorial of a given number.

17. Display the Multiplication Table

A simple program to display the multiplication table for a number provided by the user.

18. Print the Fibonacci Sequence

A program to print the Fibonacci sequence up to a certain number of terms.

19. Check Armstrong Number

This project checks if a number is an Armstrong number.

20. Find Armstrong Number in an Interval

A program to find all Armstrong numbers in a specified interval.

21. Find the Sum of Natural Numbers

This program calculates the sum of the first n natural numbers.

22. Display Powers of 2 Using Anonymous Function

A project to display powers of 2 using a lambda function.

23. Find Numbers Divisible by Another Number

A program to find all numbers divisible by a specified number in a given range.

24. Convert Decimal to Binary, Octal, and Hexadecimal

This project converts a decimal number to its binary, octal, and hexadecimal equivalents.

25. Find ASCII Value of Character

A simple program to find the ASCII value of a character.

26. Find HCF or GCD

This program calculates the Highest Common Factor (HCF) or Greatest Common Divisor (GCD) of two numbers.

27. Find the Factors of a Number

A project to find all factors of a given number.

28. Make a Simple Calculator

This project implements a basic calculator that performs addition, subtraction, multiplication, and division.

29. Shuffle Deck of Cards

A program to shuffle a deck of cards using the itertools and random modules.

30. Display Calendar

A project that displays the calendar of a given month and year using the calendar module.

31. Display Fibonacci Sequence Using Recursion

This program prints the Fibonacci sequence using recursion.

32. Find Sum of Natural Numbers Using Recursion

A project to find the sum of natural numbers using recursion.

33. Find Factorial of Number Using Recursion

This program calculates the factorial of a number using recursion.

34. Convert Decimal to Binary Using Recursion

A project to convert a decimal number to binary using recursion.

35. Add Two Matrices

This project adds two matrices of the same dimensions.

36. Transpose a Matrix

A program to transpose a given matrix.

37. Multiply Two Matrices

This project multiplies two matrices of appropriate dimensions.

38. Check Whether a String is Palindrome or Not

A program to check if a given string is a palindrome.

39. Remove Punctuations From a String

A program to remove all punctuations from a given string.

40. Sort Words in Alphabetic Order

This project sorts the words in a string in alphabetical order.

41. Illustrate Different Set Operations

A program to demonstrate various set operations such as union, intersection, and difference.

42. Count the Number of Each Vowel

This project counts the occurrences of each vowel in a given string.

43. Find the Size (Resolution) of an Image

A program that uses the PIL library to find the resolution of an image.

44. Merge Two Dictionaries

This project merges two dictionaries into one.

45. Safely Create a Nested Directory

A program to safely create nested directories using os.makedirs().

46. Access Index of a List Using for Loop

A project to demonstrate how to access the index of elements in a list using a for loop.

47. Slice Lists

A program that demonstrates various list slicing techniques.

48. Iterate Over Dictionaries Using for Loop

This project demonstrates how to iterate over a dictionary’s keys and values.

49. Sort a Dictionary by Value

A program to sort a dictionary by its values.

50. Check If a List is Empty

This project checks if a list is empty.

51. Catch Multiple Exceptions in One Line

A program to demonstrate how to catch multiple exceptions in a single line.

52. Copy a File

This project uses the shutil module to copy files.

53. Concatenate Two Lists

A program to concatenate two lists into one.

54. Check if a Key is Already Present in a Dictionary

This project checks whether a given key exists in a dictionary.

55. Parse a String to a Float or Int

A program to parse a string into a float or integer.

56. Convert String to Datetime

This project converts a string representation of a date to a datetime object.

57. Get the Last Element of the List

A simple program to get the last element of a list.

58. Get a Substring of a String

This project extracts a substring from a string using start and end indices.

59. Print Output Without a Newline

A program to print output without adding a newline.

60. Read a File Line by Line Into a List

This project reads a file’s contents line by line and stores them in a list.

61. Randomly Select an Element From the List

A program to randomly select an element from a list using the random module.

62. Check If a String is a Number (Float)

This project checks whether a string can be converted to a floating-point number.

63. Count the Occurrence of an Item in a List

A program to count the occurrences of a specific item in a list.

64. Append to a File

This project appends text to an existing file.

65. Delete an Element From a Dictionary

A program to delete an element from a dictionary by key.

66. Create a Long Multiline String

This project creates and displays a long multiline string.

67. Extract Extension From the File Name

A program to extract the extension from a file name.

68. Measure the Elapsed Time in Python

This project uses the time module to measure the elapsed time of a program.

69. Get the Class Name of an Instance

A program to retrieve and display the class name of an instance.

70. Convert Two Lists Into a Dictionary

This project converts two lists into a dictionary where one list contains keys and the other contains values.

71. Differentiate Between type() and isinstance()

A project that explains the difference between the type() function and the isinstance() function.

72. Trim Whitespace From a String

A program to remove leading and trailing whitespace from a string.

73. Get the File Name From the File Path

This project extracts and displays the file name from a file path.

74. Represent Enum

A project to demonstrate how to use the enum module to define enumerations.

75. Return Multiple Values From a Function

This project shows how to return multiple values from a function.

76. Get Line Count of a File

A program that counts and displays the number of lines in a file.

77. Find All Files With .txt Extension Present Inside a Directory

This project finds and lists all .txt files in a specified directory.

78. Get the Full Path of the Current Working Directory

A program to display the full path of the current working directory.

79. Iterate Through Two Lists in Parallel

This project demonstrates how to iterate through two lists simultaneously using zip().

80. Check the File Size

A program to check and display the size of a file in bytes.

81. Reverse a Number

This project reverses the digits of a given number.

82. Compute the Power of a Number

A program that computes and displays the result of raising a number to a certain power.

83. Count the Number of Digits Present in a Number

This project counts the number of digits in a given number.

84. Check If Two Strings Are Anagrams

A program to check if two strings are anagrams of each other.

85. Capitalize the First Character of a String

This project capitalizes the first character of a given string.

86. Create a Countdown Timer

A program to create a simple countdown timer.

87. Count the Number of Occurrence of a Character in String

This project counts how many times a specific character appears in a string.

88. Remove Duplicate Element From a List

A program to remove duplicate elements from a list and display the unique values.

89. Convert Bytes to a String

This project converts a byte object into a string.

90. Simple To-Do List Application

A project to create a simple to-do list where users can add, remove, and view tasks.

91. Simulate Dice Roll

This program simulates rolling a dice and displays the result.

92. Temperature Conversion Application

A temperature converter that converts between Celsius and Fahrenheit.

93. Password Strength Checker

This project checks the strength of a user-provided password based on certain criteria (length, character types).

94. Random Password Generator

A program that generates a random password of a specified length.

95. Simple Quiz Game

A simple quiz game where users answer multiple-choice questions and receive a score at the end.

96. BMI Calculator

This project calculates the Body Mass Index (BMI) based on user-provided weight and height.

97. Number Guessing Game

A fun number guessing game where the user tries to guess a randomly generated number.

98. Countdown Timer

A program to create a countdown timer that counts down from a specified number of seconds.

99. Simple Contact Book

A simple contact book application where users can add, remove, and view contacts.

100. Biased Dice

A dice rolling program where the probability of rolling a six is higher than other numbers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages