PLACEMENT TRAINING- TECHNICAL
Pre-requisite Handout for Python + DSA Training
**Audience:** 7th Semester B.E. Students (CSE, ISE, ECE, etc.)
**Purpose:** To ensure students are ready to start coding from Day 1
1. Basic Python Syntax (2–3 hours)
• - What is Python? Interpreter vs Compiler
• - How to run Python code: Online (Replit), Local (VS Code or IDLE)
• - Comments (#), indentation rules
• - Try: Write a program that prints your name, age, and branch.
2. Input/Output & Variables
• - input() and print()
• - Data types: int, float, str, bool
• - Type conversion: int(), str(), float()
• - Try: Take user input for name and marks in 3 subjects. Print total and average.
3. Conditionals
• - if, elif, else statements
• - Comparison operators (==, !=, >, <, >=, <=)
• - Logical operators (and, or, not)
• - Try: Write a program to check if a number is even or odd.
4. Loops
• - for and while loops
• - range() usage
• - break and continue
• - Try: Print the first 10 multiples of 3 using both for and while loops.
5. Functions (Basic)
• - Defining and calling functions
• - Return values and parameters
• - Recursion intro (optional)
• - Try: Write a function that returns the factorial of a number.
6. Lists and Strings (Basic Ops)
• - Creating, accessing, slicing
• - append(), pop(), sort(), len()
• - String methods: .upper(), .lower(), .replace()
• - Try: Take a list of 5 numbers and find the max manually.
Optional Topics for Extra Preparedness
• - Tuples vs Lists
• - Dictionary basics (key:value)
• - Writing your first custom function with logic
Suggested Platforms for Practice
• - HackerRank - https://www.hackerrank.com/domains/python
• - W3Schools - https://www.w3schools.com/python/
• - Replit - https://replit.com/
• - Programiz - https://www.programiz.com/python-programming
What to Bring to the Training
• - Laptop with Python (3.13.5), download it from, www.python.org, installed (or use
Replit online)
• LAN Connector for your laptops is a must.
• - HackerRank account created in advance
• - Notebook for dry runs and logic sketches
• - Open mindset & readiness to solve problems!