python f' print code example
Example 1: python print format
print(f'I love {Geeks} from {Portal}')
Example 2: python f string
>>> name = "Eric"
>>> age = 74
>>> f"Hello, {name}. You are {age}."
'Hello, Eric. You are 74.'
print(f'I love {Geeks} from {Portal}')
>>> name = "Eric"
>>> age = 74
>>> f"Hello, {name}. You are {age}."
'Hello, Eric. You are 74.'