C-17-Q046mediumsingle_mcq
In an if / elif / else chain, how many else blocks may appear?
In an if / elif / else chain, how many else blocks may appear?
- aExactly one (at most)
- bExactly the same number as
elif - cAs many as needed
- dZero only
ব্যাখ্যা
An if / elif / else chain may contain at most one else block, which acts as the single fallback when every prior condition fails. There can be many elif blocks but only one closing else.