respektieren englisch
#Python F String Examples
#variable in f-string solution
string = "World"
fstring = f"Hello {string}"
print(fstring)
#Output:
#Hello World
#use function in a f-string
def calculate(number1, number2):
return number1 + number2
print(f"The result is {calculate(3,4)}")
#Output:
#The result is 7.