Type Casting in Python
Type casting changes a value’s type. int("10") → 10. str(10) → "10". float("3.5") → 3.5. list("Asha") → ['A','s','h','a']. bool(0) is False; bool("Asha") is True. Empty "", [], {}, None are falsy.
Bad text fails: int("hi") → ValueError. bool rules show up in if conditions more than in explicit bool() calls. Show one valid cast and one failing cast in the viva.
Type Casting in Python — output — 22 then 100 marks. "21" became int; 100 became str for join.
Valid cast + failing cast + falsy list.