InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 2917–2928 of 3610 questions

Python ProgrammingBeginner1 min read

Lambda

A lambda creates a small anonymous one-expression function.

Python ProgrammingBeginner1 min read

Type hints

Annotations document expected types and support static analysis, but Python does not enforce them automatically at runti…

Python ProgrammingBeginner1 min read

Recursion

A recursive function calls itself and needs a base case.

Python ProgrammingBeginner1 min read

Lists

Lists are ordered mutable sequences and allow duplicates.

Python ProgrammingBeginner1 min read

Slicing

Slicing uses start, stop-exclusive, and step indices.

Python ProgrammingBeginner1 min read

Tuples

Tuples are ordered immutable sequences, useful for fixed records and unpacking.

Python ProgrammingBeginner1 min read

Dictionaries

Dictionaries map hashable keys to values with average-case fast lookup.

Python ProgrammingBeginner1 min read

Sets

Sets hold unique hashable values and support union, intersection, and difference.

Python ProgrammingIntermediate1 min read

enumerate

enumerate yields index-value pairs while iterating.

Python ProgrammingIntermediate1 min read

zip

zip combines iterables element-wise and stops at the shortest input by default.