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