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