Skip to content

practice-python-for-beginners/python-basics-and-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“˜ README.md

Python Basics and Syntax

Welcome to python-basics-and-syntax, a beginner-friendly learning repository from the practice-python-for-beginners organization.

This repository focuses on introducing core Python concepts β€” including syntax, data types, and variables β€” with hands-on examples and unit tests to help learners verify their understanding.


πŸ“š Topics Covered

  • Variables and data types
  • Basic arithmetic operations
  • Strings and formatting
  • Writing and running simple test cases

βš™οΈ Setup Instructions

  1. Clone this repository:

    git clone https://github.com/practice-python-for-beginners/python-basics-and-syntax.git
    cd python-basics-and-syntax
  2. (Optional) Create a virtual environment:

    python -m venv venv
    source venv/bin/activate   # On Windows: venv\Scripts\activate
  3. Install dependencies (only pytest needed):

    pip install -r requirements.txt

πŸ—‚οΈ Repository Structure

python-basics-and-syntax/
β”‚
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”‚
β”œβ”€β”€ exercises/
β”‚   β”œβ”€β”€ variables_and_types.py
β”‚   β”œβ”€β”€ basic_operations.py
β”‚   β”œβ”€β”€ strings_and_formatting.py
β”‚   └── tests/
β”‚       β”œβ”€β”€ test_variables_and_types.py
β”‚       β”œβ”€β”€ test_basic_operations.py
β”‚       └── test_strings_and_formatting.py
β”‚
└── requirements.txt

🧠 How to Use

Each script in the exercises/ folder demonstrates a fundamental Python concept.
You can:

  • Read the code and comments.
  • Edit and run the exercises to experiment.
  • Use the provided tests to validate your understanding.

Run all tests using:

pytest

🧾 License

This repository is licensed under the GNU General Public License v3.0 (GNU GPLv3).
See LICENSE for details.


Happy coding!


About

python-basics-and-syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages