Skip to content

A complete Python basics notebook for students and beginners — covers syntax, variables, loops, functions, recursion, file handling, and more with simple examples and explanations. Perfect for learning or revision.

Notifications You must be signed in to change notification settings

Abdulrehman1121/Python_Basics_Cheat_Sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Python Basics Cheat Sheet 🐍

A comprehensive Python Basics Cheat Sheet in Jupyter Notebook format — perfect for beginners, self‑learners, and students.


📘 Topics Covered

  • Getting Started
    • Installing Python (Windows / macOS / Linux)
    • Writing your first program (print("Hello, World!"))
  • Syntax & Variables
  • Truthy vs Falsy Values
  • Data Types
    • Primitive vs Non‑Primitive
  • Operators
  • Conditions (if, elif, else)
  • Loops (for, while)
  • Functions (basic, recursive, lambda)
  • File Handling
  • Type Casting
  • String Methods
  • List Comprehensions
  • Exception Handling
  • Random Module
  • *args and **kwargs
  • Built‑in Functions
    len, type, id, enumerate, eval, and more

📂 File

  • Python_Cheat_Sheet_Updated.ipynb – The notebook containing clear explanations, runnable code, and comments.

🤝 Contributions

Pull requests and feedback are welcome! If you spot an error or want to add a new example, feel free to open an issue or submit a PR.


📄 License

About

A complete Python basics notebook for students and beginners — covers syntax, variables, loops, functions, recursion, file handling, and more with simple examples and explanations. Perfect for learning or revision.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published