0% found this document useful (0 votes)
3 views

Coding_Bootcamp_Day_1

The Coding Bootcamp focuses on teaching problem-solving and programming logic using Python, with no prerequisites required. The program consists of 12 sessions from Nov 20 to Dec 3, featuring hands-on coding challenges and a collaborative environment. Key objectives include learning to write high-quality code and understanding the basics of testing and debugging, while daily attendance and feedback are mandatory for tracking progress.

Uploaded by

danker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Coding_Bootcamp_Day_1

The Coding Bootcamp focuses on teaching problem-solving and programming logic using Python, with no prerequisites required. The program consists of 12 sessions from Nov 20 to Dec 3, featuring hands-on coding challenges and a collaborative environment. Key objectives include learning to write high-quality code and understanding the basics of testing and debugging, while daily attendance and feedback are mandatory for tracking progress.

Uploaded by

danker
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Coding Bootcamp: Day 1 –

Foundations of Problem Solving


Focus on Problem Solving and Logic
with Python as a Tool
Welcome to the Coding
Bootcamp
Kickstart Your Coding Journey
Program Overview
• - Designed for everyone: Predominant focus
on Beginners
• Gradually will get into Intermediate and
Advanced Levels
• - No prerequisites required.
• - 12 sessions: Nov 20 to Dec 3.
• - Daily sessions in slots: 5–7 PM, 7–9 PM, 9–11
PM.
What to Expect
• - Hands-on coding challenges (60 total).
• - Collaborative environment—share your logic
and learn.
• - Focus on coding without tools—write quality
code on your own.
Attendance and Participation
• - Mandatory attendance linked to credits.
• - Attendance taken at start, end, and random
checks.
• - Be on camera—pleasant background
required.
• - Unresponsive participants will be marked
absent.
Feedback and Improvement
• - Daily feedback forms to track progress.
• - Helps us improve the program.
• - Share your experience and suggestions.
Closing Thoughts
• - Enjoy the process—coding is fun and
creative!
• - Stay persistent—keep trying.
• - Discover your strengths: High-code, Low-
code, or No-code.
• - Get ready for an exciting journey into AI and
ML.
Q&A
• We’re here to answer your questions. Let’s get
started!
Objectives of the Program
Key Objectives:
- Learn problem-solving and programming logic.
- Write high-quality, logical code.
- Understand basics of testing and debugging.

What This Program is NOT About:


- Detailed Python language syntax or libraries.
- Python internals, operators, or advanced constructs.

Note: Python is just a tool for learning logic.


Day 1 Agenda
Topics Covered:
1. Structure of a Python program.
2. Input/output and data types.
3. Arithmetic operators and problem-solving.
4. Coding challenges:
- Sum and Average
- Simple Interest Calculator
- Sales and Discount Problem
- Swapping Numbers (with and without temporary variable)
- Farmer’s Problem
5. Feedback and Q&A.

Time Breakdown:
- Concept learning: 45 minutes.
- Challenges: 50 minutes.
- Feedback: 10 minutes.
Where to Write Python Code
- You can use any **online editor** to write and run Python code.
- Suggested online tools:
- Online GDB (https://www.onlinegdb.com/)
- Replit (https://replit.com/)
- If you already have Python installed with standard editors like:
- PyCharm
- VS Code
- Jupyter Notebook
That’s great but **not mandatory**.

Use what works best for you to practice and execute code.
Structure of a Python Program
• Key Elements:
• - Comments: Explain code using #.
• - Imports: Add optional modules or libraries (import math).
• - Variables: Declare and store data (num1 = 5).
• - Input/Output:
• - Input: input("Enter a number: ").
• - Output: print("Hello, World!").
• - Main Logic: The sequence of executable steps.

• Example Code:
• # A sample Python program
• num1 = int(input("Enter a number: "))
• print("You entered:", num1)
Basics of Display and Data Types
• Output Display: Using print() for:
• - Numbers: print(42)
• - Strings: print("Hello")
• - Floats: print(3.14)

• Basic Data Types:


• - Integer (int): Whole numbers (e.g., 10).
• - Float (float): Decimal numbers (e.g., 2.5).
• - Boolean (bool): True or False values.
• - String (str): Text (e.g., "Python").

• Basic Operators:
• - Arithmetic: +, -, *, /, **.
Challenge 1 – Sum and Average
• Problem Statement:
• - Input three numbers.
• - Calculate and display their sum and average.

• Focus: Input/output, variables, arithmetic operations.

• Example Inputs/Outputs:
• - Input: 3, 5, 7.
• - Output: Sum = 15, Average = 5.0.

• Hints:
• - Use input() for taking user values.
• - Perform addition and division for results.
Challenge 2 – Simple Interest
Calculator
• Problem Statement:
• - Input: Principal, time, and rate of interest.
• - Compute simple interest using the formula: SI = (P × T × R) / 100.
• - Display the result.

• Focus: Variables, formulas, and arithmetic logic.

• Example Inputs/Outputs:
• - Input: P = 1000, T = 2, R = 5.
• - Output: SI = 100.

• Hints:
• - Break down the formula into steps.
Challenge 3 – Sales and Discount
Calculator
• Problem Statement:
• - Input:
• - Item name, unit price, quantity, and percentage discount.
• - Calculate:
• - Total value of the sale.
• - Discount amount.
• - Final selling price.
• - Display the results.

• Example:
• - Input: Item: "Laptop", Price: 50000, Quantity: 2, Discount: 10%.
• - Output: Total: 100000, Discount: 10000, Final: 90000.
Challenge 4 – Swapping Numbers
• Problem Statement:
• - Swap two numbers using:
• - A temporary variable.
• - Without a temporary variable.

• Focus: Logic building and alternative approaches.

• Example:
• - Input: a = 3, b = 5.
• - Output: a = 5, b = 3.

• Hints:
• - Temporary variable: temp = a.
• - Without temporary variable: Use addition/subtraction or XOR.
Farmer’s Problem – Comprehensive
Challenge
• Problem Statement:
• - A real-world scenario provided as a detailed document (PDF).

• Step 1: Understand and extract mathematical equations.


• Step 2: Write the logic and implement the solution.

• Focus:
• - Requirement analysis and problem decomposition.
• - Transitioning from equations to code.

• Duration:
• - Solve the problem collaboratively in 30 minutes.
Wrap-Up and Feedback
• Key Takeaways:
• - Importance of problem-solving over syntax.
• - Focus on logic, not language details.
• - Real-world applications of coding.

• Feedback:
• - Open the floor for questions and reflections.
• - Discuss areas of improvement and next steps.

You might also like