This code contains a logical error.
Just missing the f key in the beginning of the message.
Correct!
message = f"Hello, my name is {name} and I am {age} years old."
Hi Patricia, that's correct!
This is my third week learning Python and I was nervous that I wasn't going to be able to answer it, but I did! 🤩 Thanks for the practice!
Keep on learning, Adriana :)
Use this --message = f"Hello, my name is {name} and I am {age} years old."
That would be the correct line. 👍
The string 'message' is assigned without 'f' prefix. To fix the code, prefix the string with 'f'.
Yes, that's it.
there should be an f after the message = for it to work
Before the message, to be exact :)
Just missing the f key in the beginning of the message.
Correct!
message = f"Hello, my name is {name} and I am {age} years old."
Hi Patricia, that's correct!
This is my third week learning Python and I was nervous that I wasn't going to be able to answer it, but I did! 🤩 Thanks for the practice!
Keep on learning, Adriana :)
Use this --message = f"Hello, my name is {name} and I am {age} years old."
That would be the correct line. 👍
The string 'message' is assigned without 'f' prefix. To fix the code, prefix the string with 'f'.
Yes, that's it.
there should be an f after the message = for it to work
Before the message, to be exact :)