SRM TRP Engineering College
Python competitive coding For Non IT(ECE & EEE)
Day 1 – Python Basics (Syntax + Input/Output + Operators)
• Python installation, IDEs
• Keywords, indentation, comments
• Variables, data types (int, float, str, bool)
• Input/output (input(), print(), format())
• Operators: arithmetic, comparison, logical, identity, membership
problems on beginner-level
Day 2 – Conditional Statements & Loops
• if, elif, else
• for loop, while loop
• range(), break, continue, pass
• Nested loops
problems on logic-based loop practice problems
Day 3 – Strings & Built-in Functions
• String operations
• Built-in string functions
• String formatting
problems on string-based problems
Day 4 – Lists, Tuples, Sets, and Dictionaries
• List: indexing, slicing, methods (append, pop, remove, sort)
• Tuple: immutability
• Set: uniqueness, .add(), .remove(), set operations
• Dictionary: key-value pairs, .get(), .items(), .keys(), .values()
problems mixing lists, sets, and dicts
Day 5 – OOPs in Python (Classes and Objects)
• Class & object syntax
• __init__ constructor
• self keyword
• Instance vs class variables
• Method creation
problems on class-based implementation
Day 6 – OOPs Concepts Continued
• Inheritance (single, multilevel)
• Method overriding
• super() usage
• Encapsulation, private/protected members
• Polymorphism (duck typing)
problems on small class inheritance/override-based exercises
Day 7 – Number Theory
• GCD, LCM
• Prime number generation (Sieve of Eratosthenes)
• Factors of a number
• Modular arithmetic tricks
problems on Number Theory
Day 8 – Pattern-Based Problems
• Right/left/centered triangles
• Number pyramid, Floyd’s triangle
• Hourglass/star/hour patterns
problems on patterns from different difficulty levels
Day 9 – Two-Pointer & Window-Based Logic
• just pointer usage
• Find pair with sum
• Max consecutive 1s in binary array
• Reverse elements without using extra space
problems on pointer logic problems
Day 10 – Greedy Thinking (Logic-First)
• Min/max problem solving
• Count minimum steps, maximize score, etc.
Day 11 – Recursion + Backtracking Basics
• Basic recursion: factorial, sum, fibonacci
• Tail recursion, base case
• Backtracking: subsets, permutations
Focus more on understanding recursion visually
Day 12 – String + Math Combinations
• Frequency-based problems
• Mathematical puzzles
• Custom sorting logic