C-17-Q006mediumsingle_mcq
In Python, the else keyword is used to:
In Python, the else keyword is used to:
- aReplace the
ifkeyword - bSpecify an alternative action when the
ifcondition is not met - cRepeat the
ifbody - dEnd the program
ব্যাখ্যা
The else keyword defines the alternative block that runs only when the if condition is false. It lets the program take a different action when the tested condition is not satisfied.