GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mhd-haarish07/python-basic-program-practice: 50+ basic Python programs for beginners — covering numbers, strings, lists, patterns, matrices, OOP, and recursion, each in its own file with sample output.

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
list
list
 
 
matrix
matrix
 
 
oopsfunctions
oopsfunctions
 
 
01_hello_world.py
01_hello_world.py
 
 
02_add_two_numbers.py
02_add_two_numbers.py
 
 
03_swap_two_variables.py
03_swap_two_variables.py
 
 
04_check_even_odd.py
04_check_even_odd.py
 
 
05_largest_of_three.py
05_largest_of_three.py
 
 
06_simple_calculator.py
06_simple_calculator.py
 
 
07_check_prime.py
07_check_prime.py
 
 
08_factorial.py
08_factorial.py
 
 
09_fibonacci_series.py
09_fibonacci_series.py
 
 
10_sum_of_digits.py
10_sum_of_digits.py
 
 
11_reverse_a_number.py
11_reverse_a_number.py
 
 
12_palindrome_number.py
12_palindrome_number.py
 
 
13_armstrong_number.py
13_armstrong_number.py
 
 
14_gcd.py
14_gcd.py
 
 
15_lcm.py
15_lcm.py
 
 
16_celsius_to_fahrenheit.py
16_celsius_to_fahrenheit.py
 
 
17_simple_interest.py
17_simple_interest.py
 
 
18_check_leap_year.py
18_check_leap_year.py
 
 
19_multiplication_table.py
19_multiplication_table.py
 
 
20_sum_of_natural_numbers.py
20_sum_of_natural_numbers.py
 
 
21_reverse_string.py
21_reverse_string.py
 
 
22_palindrome_string.py
22_palindrome_string.py
 
 
23_count_vowels.py
23_count_vowels.py
 
 
24_count_words.py
24_count_words.py
 
 
25_check_anagram.py
25_check_anagram.py
 
 
26_remove_duplicate_chars.py
26_remove_duplicate_chars.py
 
 
27_convert_string_case.py
27_convert_string_case.py
 
 
28_character_frequency.py
28_character_frequency.py
 
 
29_check_only_digits.py
29_check_only_digits.py
 
 
30_title_case_sentence.py
30_title_case_sentence.py
 
 
README.md
README.md
 
 

Repository files navigation

Python Basic Programs šŸ

A collection of 50+ beginner-friendly Python programs, each written as a standalone .py file. Perfect for practicing core concepts, prepping for exams/interviews, or just learning Python from scratch.

šŸ“‚ Repository Structure

python-basic-programs/
ā”œā”€ā”€ 01_numbers/            # 20 programs — math & number logic
ā”œā”€ā”€ 02_strings/             # 10 programs — string manipulation
ā”œā”€ā”€ 03_lists/                # 10 programs — lists, searching, sorting
ā”œā”€ā”€ 04_patterns/          # 3 programs  — star & number patterns
ā”œā”€ā”€ 05_matrices/           # 2 programs  — matrix operations
ā”œā”€ā”€ 06_oop_functions/  # 5 programs  — OOP, recursion, exceptions
└── README.md

šŸš€ How to Run

Clone the repo and run any program directly:

git clone https://github.com/<your-username>/python-basic-programs.git
cd python-basic-programs
python3 01_numbers/07_check_prime.py

Requires Python 3.6+ (uses f-strings). No external libraries needed except the built-in collections module used in one file.

šŸŽÆ Who This Is For

  • Students learning Python fundamentals
  • Anyone preparing for basic coding interviews or lab exams
  • Instructors looking for ready-made practice examples

šŸ¤ Contributing

Pull requests are welcome! If you'd like to add a new basic program, follow the existing naming convention (NN_description.py) and place it in the relevant category folder.

šŸ“„ License

Free to use for learning and educational purposes.

About

50+ basic Python programs for beginners — covering numbers, strings, lists, patterns, matrices, OOP, and recursion, each in its own file with sample output.

Topics

algrorithmbasicslearningpythonpractice-programmingpythonpythonbasics

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.