python f string if else one line code example Example: f string conditional string = f'I am {num:{".2f" if ppl else ""}}'