Skip to content

dpuwar08/Python-Fundamentals

Repository files navigation

🐍 Python Fundamentals

Welcome to the Python Fundamentals repository! This is a comprehensive, step-by-step learning guide containing beginner-friendly Python programs. It covers core syntax, logic building, data structures, and file operations.


πŸ“‚ Repository Structure & Topics Covered

The building blocks of Python. Covers how to store data and output information to the console.

  • helloWorld.py β€” Your very first Python script.
  • variable.py β€” Variable declaration and assignment basics.
  • datatype.py β€” Exploring fundamental types (int, float, str, bool).
  • comment.py β€” Documenting code using single-line and multi-line comments.

Taking user inputs and performing operations on variables.

  • Basic Arithmetic: sum.py, subtraction.py, division.py, modulo.py, power.py
  • Operators: assignmentop.py, logicalop.py, relationalop.py
  • User Input & Conversions: inputop.py, nameinput.py, num.py, typeconv.py
  • Practical Math: rectanglearea.py, squarearea.py, floatavg.py

Manipulating text and making decisions based on specific conditions.

  • Strings: concatenation.py, count.py, indexing.py, slicing.py, strfunction.py, lengthofstr.py, inputstrlength.py
  • Formatting: newline.py, tab.py
  • Conditional Logic: oddeven.py, grades.py, greatestof3.py, multipleof7.py, trafficsignal.py, nesting.py

Working with ordered sequences of data (both mutable and immutable).

  • Lists: list1.py, list2.py, listmethods.py, listslicing.py
  • Tuples: tup1.py
  • Practice Questions: listsquestion.py, listsquestion2.py, listsquestion3.py, tupquestion1.py

Storing data in unique and unordered collections using key-value pairs and sets.

πŸ“ 06-Loops

Mastering repetition structures to write efficient code.

  • While Loops: while1.py to while4.py, whileque1.py to whileque4.py, sumwithwhile.py, factorialwithwhile.py
  • For Loops: for1.py, forpass.py, evenwithfor.py, oddwithfor.py, sumwithfor.py, factorialwithfor.py
  • Range & Practice: forrange1.py, forrange2.py, Loops questions (forque1.py through forque7.py)

Breaking down code into reusable blocks and resolving problems via self-calling functions.

  • Functions: func1.py, func2.py, Practice questions (funcque1.py through funcque8.py)
  • Recursion: recur1.py, recur2.py, Practice questions (recurque1.py, recurque2.py)

Interacting with persistent data through reading, writing, and modifying external files.

  • File Basics: fileio1.py to fileio5.py
  • The with Syntax: fileiowith1.py to fileiowith6.py
  • File Operations: filedelete.py
  • Practice Questions: fileioque1.py to fileioque5.py

πŸš€ How to Run These Scripts

  1. Clone the Repository:
    git clone [https://github.com/dpuwar08/Python-Fundamentals.git](https://github.com/dpuwar08/Python-Fundamentals.git)

About

My personal playground for learning Python, starting all the way from basic to building something gorgeous 🀷🏻 !

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages