C. TypeError because * expects an integer, not a list
D. ValueError because lists cannot be multiplied
Solution
Step 1: Understand list repetition rules
List repetition uses * with an integer, not another list.
Step 2: Identify the error in list_a * list_b
Multiplying two lists causes a TypeError because the right operand must be int.
Final Answer:
TypeError because * expects an integer, not a list -> Option C
Quick Check:
List * list is invalid, needs int [OK]
Hint: Right side of * must be integer for list repetition [OK]
Common Mistakes:
Trying to multiply two lists directly
Expecting concatenation with * operator
Confusing syntax error with type error
5. You have two lists: fruits = ['apple', 'banana'] veggies = ['carrot'] How do you create a new list that repeats the fruits twice and veggies three times, then combines them all in order?