Python DSA Training PreRequisites
Python DSA Training PreRequisites
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.