I am currently learning about user input and while loops. Here is an example:
name = input("Please enter your name: ")
print(f"\nHello, {name}!")
As a result the only output I get is:
Please enter your name:
Whereas the book I am reading has a different output:
Please enter your name: Eric Hello, Eric!
How do I get the second output?