In java script there is an alternative to if statement i mean this : (boolean expression )? option 1: option 2, it is elegant compact and sometimes less confusing. I have searched a lot to find an alternative for 'if' statement in python but i couldn't find anything. Is there any way to trick python so we can avoid if statement ?
Aucun commentaire:
Enregistrer un commentaire