Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Master Python by doing! πŸš€ A curated set of practical labs and exercises to bridge the gap between theory and real-world code.

Notifications You must be signed in to change notification settings

amirshaikh321/python-programming-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

54 Commits

Repository files navigation

Python- Basics to Advance

I'm going over all the Python topics in this repository, which really helps me boost my knowledge by revising this Python.

1. The Basics (Foundations)

  • Variables & Data Types: Integers, Floats, Strings, Booleans.

  • Basic Operators: Arithmetic, Comparison, and Logical operators.

  • Input/Output: Using print() and input().

  • Strings: Slicing, indexing, and common methods (upper, lower, replace).

2. Control Flow & Logic

  • Conditional Statements: if, elif, and else.

  • Loops: for loops (iterating over ranges/sequences) and while loops.

  • Loop Control: break, continue, and pass.

  • List Comprehensions: A Pythonic way to create lists.

3. Functions & Functional Programming

Moving away from "scripting" toward reusable code.

  • Defining Functions: def, arguments (*args, **kwargs), and return values.

  • Scope: Local vs. Global variables.

4. Data Structures (Intermediate)

Learning how to organize and store data efficiently.

  • Lists: Ordered, mutable collections.

  • Tuples: Ordered, immutable collections.

  • Dictionaries: Key-value pairs (essential for JSON and APIs).

  • Sets: Unordered collections of unique elements.

5. File Handling & Modules

  • File I/O: Reading and writing .txt and .csv files.

  • Modules & Packages: Using import, pip.

  • Exception Handling: Using try, except, finally to prevent crashes.

About

Master Python by doing! πŸš€ A curated set of practical labs and exercises to bridge the gap between theory and real-world code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /