Skip to content

supunxiii/learn-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Overview

learn-python is a code-short note to understand the basics of Python, designed as a simple, code-first learning aid. To learn, users can uncomment the code lines and execute the files to see how each concept works in practice. It briefly covers core theory such as data types, variables, strings, operators, slicing, input handling, conditionals, loops, functions, return values, and variable scope.

Designed and developed by Supun Wijesooriya.

Python

Features

The learn-python notes include the following:

  1. Core Data Types and Variables

    • Integers, floats, booleans, and strings
    • Basic assignments and updates
  2. String Operations

    • Concatenation and methods
    • Indexing and slicing
  3. Operators and Input

    • Arithmetic and logical operators
    • User input handling
  4. Control Flow

    • If/elif/else selection patterns
    • While loops for repetition
  5. Iteration

    • For loops with ranges
    • Nested loops for simple patterns
  6. Functions

    • Function definitions and parameters
    • Return values
    • Variable scope

Technologies Used

  • Python 3.13: Core language used for all examples
  • No External Libraries: All code uses only built-in Python features

Project Structure

learn-python/
├── learnpython.py
└── get_to_know_functions.py

Getting Started

To run the notes locally, follow these steps:

  1. Open the repository folder.

  2. Uncomment the code lines you want to try in learnpython.py or get_to_know_functions.py.

  3. Run the file in your terminal:

    python3 learnpython.py

Developer

This project was developed by:

  • Supun Wijesooriya

Contributing

Contributions are welcome. If you would like to contribute, please follow these steps:

  1. Fork the repository.

  2. Create a new branch:

    git checkout -b feature/your-feature-name
  3. Make your changes and commit them:

    git commit -m "Add your commit message"
  4. Push your changes to your forked repository:

    git push origin feature/your-feature-name
  5. Open a pull request to the main repository.

Important Notes

  • These notes are intended for learning and revision of Python fundamentals.
  • Uncomment only the sections you want to run to avoid conflicting inputs.
  • Examples are intentionally minimal to keep the focus on core concepts.

Contact

For any enquiries or feedback, please contact the developer:

About

a comprehensive code based short note covering the basics of python 3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages