Skip to content

This repository contains a collection of 140+ Python programs covering a wide range of fundamental concepts and problem-solving techniques. It is designed to help beginners and intermediate learners strengthen their Python skills through hands-on practice.

Notifications You must be signed in to change notification settings

AbdullahRFA/140_Python_basic_program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

140+ Python Programs for Practice

This repository contains a collection of 140+ Python programs covering a wide range of fundamental concepts and problem-solving techniques. It is designed to help beginners and intermediate learners strengthen their Python skills through hands-on practice.

📌 About This Collection

This collection includes basic and intermediate Python programs that cover:

  • Basic Syntax and Operations
  • Mathematical Computations
  • Conditional Statements and Loops
  • Functions and Recursion
  • Working with Lists, Tuples, and Dictionaries
  • File Handling
  • Object-Oriented Programming
  • Algorithms and Problem Solving

Each program is written in a simple and structured way to help learners understand key programming concepts effectively.

📂 Program Categories

Here are some of the topics covered:

  1. Basic Python Programs

    • Printing "Hello Python"
    • Arithmetic operations (addition, division, etc.)
    • Swapping variables with and without a temp variable
  2. Mathematical Programs

    • Finding the area of a triangle
    • Checking if a number is prime
    • Generating Fibonacci sequences
    • Finding factorial using recursion
  3. Conversions and Computations

    • Converting kilometers to miles
    • Converting Celsius to Fahrenheit
    • Calculating LCM and HCF
    • Finding the natural logarithm of a number
  4. Data Structures & Operations

    • Sorting words in alphabetical order
    • Finding the largest/smallest number in a list
    • Removing empty lists from a list
    • Cloning or copying lists
  5. Advanced Programs

    • Checking Armstrong numbers
    • Finding Happy numbers
    • Generating Disarium numbers
    • Matrix addition, multiplication, and transposition

🚀 How to Use

  1. Clone this repository:

    git clone https://github.com/AbdullahRFA/140_Python_basic_program.git
    
  2. Navigate to the project directory:

    cd python-practice
    
  3. Run any Python script:

    python program_name.py
    

📖 Who Can Use This?

• Beginners looking to get started with Python programming • Students preparing for coding interviews • Developers who want to brush up on Python concepts

📢 Contributions

If you would like to contribute by adding more practice problems, feel free to fork this repository, make changes, and submit a pull request.

📜 License

This project is licensed under the MIT License – you are free to use and modify the code.

Happy coding! 🚀

Replace your-username with your GitHub username before uploading it. Let me know if you need modifications! 🚀