This repository contains beginner-friendly Python practice scripts designed to help new programmers—especially Chartered Accountancy and finance students—grasp the fundamentals of Python programming using practical, well-commented examples.
Topic | Description |
---|---|
print.py |
Basic printing of strings, variables, f-strings, and formatted output |
input.py |
Accepting user input and performing arithmetic (e.g., GST invoice) |
if.py |
Simple, nested, and compound conditionals (if , elif , else ) |
logical_operators.py |
Use of logical operators and , or , not with conditions |
string_methods.py |
Examples of string manipulation methods like .upper() , .strip() |
list_operations.py |
Creating, modifying, sorting, and deleting elements in lists |
tuple.py |
Introduction to immutable tuples and accessing values |
tax_calculator.py |
Income tax slab calculation using conditional logic |
- Ensure Python 3 is installed on your system.
- Clone the repository or download the files.
- Run any script using:
python filename.py
For example:
python tax_calculator.py
- Understand how to declare and print variables.
- Learn how to take user input and perform calculations.
- Use conditionals to handle real-world scenarios (tax, age check).
- Master data structures like lists and tuples.
- Apply string functions to clean and format text data.
- Strengthen understanding of logical thinking using Python syntax.
- VS Code with Python Extension
- Alternatively: Jupyter Notebook / Google Colab for interactive testing
These examples were prepared to help CA and finance students build programming confidence through relatable, real-world examples in Python.
MIT License – feel free to use and adapt for educational purposes.