The Python Fundamentals & Patterns Laboratory (python-assignment-01) is a hands-on computational foundation suite covering core Python language mechanics, boolean truth-table logic, string manipulation, and nested-loop geometric pattern generation.
Mastery of control flow and loop invariant mechanics forms the bedrock of algorithmic problem-solving. This repository isolates essential algorithmic patterns: from arithmetic input parsing and step-indexed string slicing to multi-dimensional triangular number matrices, inverted star pyramids, and conditional branching.
- Executive Summary / Overview
- Key Features & Capabilities
- System Architecture & Control Flow
- Tech Stack Breakdown
- Laboratory Modules & Computational Concepts
- Reproducible Quickstart & Setup
- Project Directory Layout
- Author & Contributions
-
Algorithmic Pattern Generation: Implements nested
forloop algorithms to render equilateral star triangles, inverted pyramids, and sequential integer matrices. -
String Indexing & Inversion: Exercises Python string slicing semantics (
str[::-1], step slicing, uppercase/lowercase casing, length evaluation). -
Boolean Truth Table Mapping: Programmatically evaluates propositional logic combinations (
and,or,not) across boolean states. -
Arithmetic & Comparison Engines: Dynamic terminal user input ingestion computing arithmetic operations (
$+$ ,$-$ ,$\times$ ,$/$ ) and strict conditional comparisons ($>$ ,$<$ ,$==$ ). - Formatted String Interpolation: Clean user input prompts with typed integer casting and structured console reports.
flowchart TD
subgraph Input & Arithmetic Logic
In[User Console Input] --> Parse[Type Casting: int & str]
Parse --> Op[Arithmetic & Logical Operators]
Op --> Out1[Computed Math & Boolean Tables]
end
subgraph String Manipulation
Str[Source String: Jeshwanthika] --> S1[Slicing: Step -1 Reversal]
Str --> S2[Case Transformations: Upper / Lower]
S1 & S2 --> Out2[Transformed String Stream]
end
subgraph Nested Loop Pattern Engines
N[Matrix Bound: N = 5] --> L1[Outer Loop: Rows 1 to N]
L1 --> L2[Inner Loop: Column Indices]
L2 --> Out3[Star Pyramids & Numeric Triangles]
end
| Category | Technologies & Tools |
|---|---|
| Language | Python 3.9+ |
| Paradigms | Procedural Programming, Computational Logic, Pattern Heuristics |
| Interactive Shell | Jupyter Notebook (assignment (2).ipynb, Assignment new (1).ipynb) |
| Core Constructs | Nested Loops, Slicing Semantics, Conditionals, Boolean Algebra |
| Notebook File | Focus Area | Algorithmic Concepts Demonstrated |
|---|---|---|
assignment (2).ipynb |
Language Core & Strings | User I/O, Arithmetic Operators, Boolean Truth Tables, String Reversal |
Assignment new (1).ipynb |
Pattern Programming | Incremental Star Triangles, Inverted Pyramids, Ascending/Descending Numeric Matrices |
- Python 3.9+ installed
git clone https://github.com/Jeshwanthika07/python-assignment-01.git
cd python-assignment-01pip install jupyterlab
jupyter labpython-assignment-01/
│
├── assignment (2).ipynb # Fundamentals: Operators, conditionals & string slicing
├── Assignment new (1).ipynb # Algorithmic pattern matrices and nested loops
└── README.md # Comprehensive laboratory documentation
Authored by Jeshwanthika Pothamchetty
Alliance University | Department of Computer Applications