Python
23 articles in this topic

Python Lists Tutorial: Create, Update, Slice and Use Lists with Examples
Learn Python lists through one clear path, from creation and indexing to mutation, comprehensions, copying, and exam-style output questions.

Python Dictionaries Tutorial: Syntax, Methods and Worked Examples
Learn how Python dictionaries store, retrieve and transform key-value data through runnable examples, common traps and one complete marks-processing task.

Python Tutorial: The Complete Learning Path, Ordered for Self-Study
Follow Python in a practical order, from your first program to functions, collections, files, OOP, libraries, and the point where DSA should begin.

Python String Methods and Formatting: Immutability, Slicing and the Interview Question Patterns
Predict string output by tracking returned values, half-open slices and formatting specifications, then avoid the replace, find, identity and concatenation traps.

Python Decorators and Generators: yield, Closures and the Trace-the-Output Interview Questions
See decorators and generators as functions that retain state. Trace a wrapped call, expand @repeat(3), and follow countdown(3) through StopIteration.

OOP in Python: Classes, Inheritance, the MRO Diamond and Dunder Methods for Interviews
Work through Python's MRO diamond and the __eq__ plus __hash__ rule. These two examples explain many of the OOP output questions asked in interviews.

String Problems in Python for Coding Rounds: Palindromes, Anagrams and Compression Solved
Python turns common string problems into one-liners, but interviewers usually remove that shortcut next. Learn the Pythonic and manual solutions for three recurring patterns.

Python Functions Deep Dive: *args, **kwargs, the Mutable Default Trap and LEGB Scope
Trace the shared-list default, unpack extra arguments, and follow Python's LEGB lookup so familiar function snippets stop producing surprising output.

Python vs C for TCS NQT: Which Language to Pick for the Coding Section
Choose Python or C for TCS NQT by comparing input speed, code length, execution and your existing practice, then lock the choice with a focused three-week routine.

Python Interview Questions for Freshers 2026: Core Language, Data Structures and Coding
Prepare concise, accurate answers to Python fresher interview questions, then test your object model on mutable defaults, complexity, coding patterns and output traps.

Python Output-Based Questions: 13 Solved Snippets
Trace 13 compact Python snippets on references, slices and mutation. Each example gives the output first and then explains the object-level reason.