Skip to content

Keval10github/Python-Basic-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

🐍 Python Beginner Programs Repository

Welcome to the Python Beginner Programs Repository! This collection is designed to help new learners master Python fundamentals through 100 practical, hands-on programs.

✨ What’s Inside?

100 beginner-friendly Python programs covering everything from “Hello World” to basic algorithms and data structures.

Each program is self-contained, clearly named, and easy to run and understand.

The repository is organized for step-by-step learning and quick reference.

🚀 Progression Path

The programs are arranged in order of increasing complexity:

Programs 1-15: Core basics (variables, operations, control flow)

Programs 16-30: Intermediate concepts (data structures, functions)

Programs 31-50: More advanced topics (algorithms, file handling)

Programs 51-75: Practical applications and problem solving

Programs 76-100: Mini-projects and integrated concepts

🗂️ Index of Programs

No. Program Title
1 Hello World Program
2 Variables and Data Types
3 Input and Output
4 Basic Arithmetic Operations
5 Conditional Statements (if-else)
6 Loops (for, while)
7 Functions
8 Lists
9 Tuples
10 Dictionaries
11 Swapping Two Numbers
12 Adding Two Numbers
13 Factorial of a Number
14 String Manipulation
15 Basic Operators
16 List Comprehensions
17 Generator Expressions
18 Decorators
19 Context Managers (with statement)
20 Custom Context Manager
21 Classes and Objects (Basic OOP)
22 Inheritance
23 Exception Handling
24 File Handling (Write and Append)
25 Lambda Functions
26 Map, Filter, Reduce
27 Working with Strings (Formatting and Methods)
28 Basic Recursion
29 Using Modules and Importing
30 Simple GUI with Tkinter
31 Using Sets for Unique Elements and Set Operations
32 Simple Stack Implementation Using List
33 Simple Queue Implementation Using collections.deque
34 Linked List Node and Basic Traversal
35 Simple Bubble Sort Algorithm
36 Palindrome Checker
37 Counting Characters in a String Using Dictionary
38 Using Enumerate to Get Index and Value
39 Finding Maximum and Minimum in a List
40 Simple Timer Using time Module
41 Checking Prime Number
42 Fibonacci Sequence (Iterative)
43 Reverse a List Without Using reverse()
44 Merge Two Lists
45 Checking if a List is Empty
46 Finding Common Elements Between Two Lists
47 Counting Vowels in a String
48 Convert Celsius to Fahrenheit
49 Check if a Number is Even or Odd
50 Find the Length of a List Without Using len()
51 Find Largest Number in a List
52 Find Smallest Number in a List
53 Sum of All Elements in a List
54 Print Multiplication Table of a Number
55 Check if a String is a Pangram
56 Remove Duplicates from a List
57 Find the Second Largest Number in a List
58 Convert Decimal to Binary
59 Convert Binary to Decimal
60 Find GCD (Greatest Common Divisor) of Two Numbers
61 Find LCM (Least Common Multiple) of Two Numbers
62 Check if a Number is Armstrong Number
63 Find All Divisors of a Number
64 Count Words in a Sentence
65 Capitalize First Letter of Each Word
66 Check if Two Strings are Anagrams
67 Print Pattern: Right Angle Triangle
68 Print Pattern: Pyramid
69 Check if a Number is Perfect Number
70 Find ASCII Value of a Character
71 Convert ASCII Value to Character
72 Sum of Digits of a Number
73 Print All Prime Numbers in a Range
74 Print All Armstrong Numbers in a Range
75 Reverse a String
76 Find the Frequency of Each Word in a String
77 Remove Punctuation from a String
78 Convert String to List and Vice Versa
79 Find the Intersection and Union of Two Sets
80 Check if a Substring Exists in a String
81 Find the Index of an Element in a List
82 Flatten a Nested List
83 Find the Sum of Nested List Elements
84 Find Common Keys in Two Dictionaries
85 Merge Two Dictionaries
86 Sort a List of Tuples by the Second Element
87 Sort a Dictionary by Value
88 Count Occurrences of an Element in a List
89 Remove All Occurrences of an Element from a List
90 Check if a List is a Palindrome
91 Find the Median and Mode of a List
92 Find the Nth Largest Element in a List
93 Generate Random Numbers
94 Shuffle a List
95 Create and Use a Simple Calculator
96 Generate a Random Password
97 Find the Factorial Using math Module
98 Find the Square Root of a Number
99 Calculate the Area of a Circle
100 Calculate the Area of a Triangle

📬 Feedback

If you spot an error, have a suggestion, or want to request a new program, please open an issue or start a discussion!

🎉 Happy Coding!

Explore, experiment, and enjoy your Python learning journey! Don’t just read the code — run it, break it, and make it your own! 🚀

✍️ Developer’s Note

I built this repo after stumbling through countless Python roadblocks—so you don’t have to! Dive in, code with confidence, and enjoy a smoother start than I ever had.

— KEVAL RAVANI https://github.com/Keval10github

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages