Welcome to the MunSociety's Python learning workshop. This guide is crafted to take you from absolute beginner to building your own basic Python applications.
📌 Goal: Build a strong foundation in Python — understand the "why" behind the code, not just the "how". Learn at your own pace, revisit topics often, and build mini-projects to solidify your understanding.
We recommend the following resources and modules to guide your journey.
- Primary Video Course (English): Python for Beginners - Full Course by freeCodeCamp (4 Hours)
- Primary Video Course (Hindi): Python Tutorial by CodeWithHarry (11 Hours)
- Quick Reference & Practice: W3Schools Python Tutorial
- In-Depth Learning: Real Python
Module 1: Getting Started with Python
- Topics: What is Python, Installing Python, Hello World, Variables, Data Types, Input/Output
- Goal: Understand basic syntax and how to write/run Python code.
Module 2: Control Flow
- Topics:
if,elif,else, Boolean logic, comparison operators - Goal: Make your program behave differently based on conditions.
Module 3: Loops and Collections
- Topics:
forloops,whileloops, Lists, Tuples, Basic Iteration - Goal: Work with groups of data and repeat tasks efficiently.
Module 4: Functions and Reusability
- Topics: Defining functions, arguments, return values, scope
- Goal: Break your code into clean, reusable blocks.
Module 5: File Handling and Basic Modules
- Topics: Reading/Writing Files, Importing modules, Simple built-in libraries like
math,datetime - Goal: Learn how to work with files and use built-in Python tools.
Once you’re comfortable with the basics, try your hand at these projects. Each folder contains a file with a brief algorithm or problem description — your task is to write Python code that implements it.
-
Distance Converter Convert values between kilometers, meters, and centimeters using input() and functions.
-
Digital Clock Display the current time in HH:MM:SS format using the
datetimemodule. -
Color Picker Simulator Simulate selecting random colors from a predefined list. (Great practice for random module.)
-
To-Do List (Console Version) Add and remove tasks from a list, with options presented in a loop.
-
Simple Calculator Perform addition, subtraction, multiplication, and division based on user input.
We’ll use Fork & Pull Request to share your code and contribute to the MunSociety repository.
Step 1: Fork the Repository
- Go to the MunSociety Python Project Repo on GitHub.
- Click the "Fork" button to copy it to your own GitHub account.
Step 2: Clone Your Fork
git clone <your_forked_repository_url>
cd <repository_folder_name>Step 3: Work on Projects
- Open the project folder (e.g.,
Distance Converter) in VS Code or another editor. - Write your code in the
main.pyfile or as specified.
Step 4: Save and Push Changes
git add .
git commit -m "Completed the To-Do List project"
git push origin mainStep 5: Create a Pull Request
- Go to your forked repository on GitHub.
- Click "Compare & pull request", write a summary, and submit.
Once you've done the beginner projects, here are a few more ideas to stretch your skills:
| Project Idea | Concepts Practiced |
|---|---|
| Number Guessing Game | Loops, conditionals, random module |
| Dice Roller Simulator | Random numbers, functions, time.sleep |
| BMI Calculator | Math, functions, formatted output |
| Simple Quiz App | Lists, conditionals, input/output |
| Contact Book (Text-Based) | Dictionaries, file handling |
| Password Generator | Strings, random, loops, user input |
| Unit Converter CLI App | Functions, input/output, logic |