30-minute recording plan
0-8 min: full-week checklist and chapter-to-skill map8-20 min: high-frequency FAQs20-27 min: trick points and common errors27-30 min: final integrated revision strategy
Quick revision checklist
Make sure you can confidently explain:- variable, literal, and data type
- list vs tuple vs set vs dictionary
- arithmetic, logical, identity, and membership operators
- indexing, slicing, and string methods
- type conversion and common runtime errors
Chapter-to-skill mapping
- Chapters 1 to 3: naming, literals, input basics
- Chapters 4 to 5: data modeling (single vs collection types)
- Chapters 6 to 7: decision logic and operator control
- Chapters 8 to 9: text processing for practical programs
Frequently asked questions
1) What is the difference between = and ==?
=assigns value to variable==compares two values
2) Why does input() need int() for numbers?
Because input() returns a string by default.
3) Difference between is and ==?
==compares valuesiscompares object identity (same object in memory)
4) Why are strings immutable?
For memory efficiency and safe behavior in many operations.5) What is the difference between list and tuple?
- list: mutable
- tuple: immutable
6) Why do we use split() and join()?
split()converts text to listjoin()combines list items into text
7) How can I avoid ValueError in numeric input?
- validate input format before conversion
- use
intfor whole numbers andfloatfor decimals - or use
try/exceptin practical programs - in exams, keep input assumptions clear in comments
8) What should I use: list or dictionary?
- use list for ordered values (
marks = [78, 84, 91]) - use dictionary for labeled data (
student["name"],student["marks"])
9) What does int() do for negative decimals?
int() truncates toward zero.
math.floor(-5.9) is -6, which is different.
10) In this code, why do all values become same?
z and assigns it to x and y.
Final state is x = c, y = c, z = c.
11) How to solve method-chain type MCQs?
Use this fixed approach:- Evaluate left to right.
- After each method, write the new type (
str,list,bool,int). - Check if next method exists on that type.
- If required argument is missing, answer is
Raises Error(usuallyTypeError).
12) Why is bool(input()) confusing?
Because user input is string text.
False, then value is "False" (non-empty string), so x becomes True.
Quick rule:
- empty string ->
False - any non-empty string ->
True
13) How to identify possible outputs in if vs nested if?
if/elif/elif: at most one branch runs.- nested
if: multiple prints can happen in sequence.
Most expected exam question types
- define term + give example
- output prediction from short code
- find error and correct code
- write short program using operators/strings
Common errors checklist
- using
=instead of==in conditions - forgetting
int()/float()afterinput() - confusing
iswith== - assuming sets keep insertion order in basic answers
- attempting in-place edit on strings (
s[0] = 'x')
High-value trick points (must know)
input()always givesstr, even for numbers.split()returns list of strings, not integers.map(int, ...)means “convert each item to integer”.==checks value;ischecks object identity.- In slicing, end index is excluded (
s[0:2]gives first 2 chars). find()returns index or-1; index0is a valid match.//is floor division, so negative cases can surprise you.int()truncates toward zero, soint(-2.9) == -2.x = y = zis chained assignment, not comparison.- for chained methods, intermediate type tracking prevents wrong options.
bool("False")isTruebecause non-empty strings are truthy.and/ormay return operands, not justTrue/False.
Final showcase: one compact program
- input + conversion
- list operations
- arithmetic + conditional expression
- dictionary output formatting
Final advice for exams
- memorize key definitions in one notebook page
- practice output prediction daily
- write code with indentation and naming discipline
- solve past paper questions in timed mode
Final mixed practice set (objective + short output)
- Type of
input()return value? - Output:
- Output:
- Type of
s[:2].upper().split()? - Type of
s.startswith("a")? - What happens in
s.startswith()? - Choose true statement:
- A)
==checks object identity - B)
ischecks value equality - C)
==checks value equality
- A)
- Output:
- Which expression gives
"00042"?- A)
f"{42:05}" - B)
f"{42:02}"
- A)
- What happens in
s.lowercase()?
Final mixed practice answers
str-8(int()truncates toward zero)33 444listbool- Raises
TypeError(missing required argument) - C
-5- A
- Raises
AttributeError(lowercaseis not a validstrmethod)
