if and for condition in one line in python code example Example: python if else one line if(whatever) else #code here