Java Basic If Else Python One Line