1. What is Python?
Python is a high-level, interpreted programming language.
2. Why is Python interpreted?
Because code executes line by line.
3. Features of Python?
Easy syntax, OOP, portable, interpreted.
4. What is variable?
Stores data.
5. Data types?
int, float, str, list, tuple, dict.
6. List vs Tuple?
List mutable, Tuple immutable.
7. Dictionary?
Key-value pairs.
8. Function?
Reusable code block.
9. Loop?
Repeats code.
10. If-else?
Decision making.
11. OOP?
Object-based programming.
12. Class?
Blueprint.
13. Object?
Instance.
14. Constructor?
__init__ method.
15. Inheritance?
Reuse properties.
16. File handling?
Read/write files.
17. Exception handling?
Handle errors.
18. Indentation?
Defines block.
19. Dynamic typing?
Type auto assigned.
20. Input/output?
input(), print()
21. Break/Continue?
Stop/skip loop.
22. Keywords?
Reserved words.
23. Modules?
Predefined code libraries.
24. What is pip?
Package manager.
25. What is lambda?
Anonymous function.
26. What is recursion?
Function calling itself.
27. What is slicing?
Access part of sequence.
28. What is len()?
Returns length.
29. What is range()?
Generates sequence.
30. What is map()?
Applies function to items.
31. What is filter()?
Filters items.
32. What is *args?
Multiple arguments.
33. What is **kwargs?
Keyword arguments.
34. What is pass?
Null statement.
35. What is global keyword?
Access global variable.
36. What is local variable?
Defined inside function.
37. What is docstring?
Function description.
38. What is __name__?
Special variable.
39. What is virtualenv?
Separate environment.
40. What is PEP 8?
Coding style guide.