C-17-Q045mediumsingle_mcq
elif is described as a popular alternative to:
elif is described as a popular alternative to:
- aUsing the
forloop - bUsing multiple separate
ifstatements - cUsing the
matchstatement - dUsing the
whileloop
ব্যাখ্যা
Instead of writing many independent if statements, an elif chain handles multiple related conditions efficiently, stopping at the first true one. This avoids redundant, separate condition checks.