I'm using this tutorial to learn about lambda functions:
How to Use Python lambda Functions
There is an example involving this line:
full_name = lambda first, last: f'Full name: {first.title()} {last.title()}'
I have 2 questions:
There is an "f" in front of "Full name". What does this "f" do?
When I run this line, I immediately get this error:
File "<stdin>", line 1 full_name = lambda first, last: f'Full name: {first.title()} {last.title()}' ^ SyntaxError: invalid syntax
Why does this happen? Why did the tutorial show a properly executed function, but I get an error?