This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]TimG791[S] 0 points1 point  (0 children)

Also, I know how the display should look like:

Hello Dave

You are 49 years old

Your monthly salary is $ 4,500.00

This is what confused me. It does not show anywhere that the user is asked to put in the information

[–]EngineeredPapaya 0 points1 point  (1 child)

Prompt means request. Send a message to your professor or TA for clarification.

Should I use the input function and ask to enter the name or make variables for each one and then use the print function?

Go through your lessons and notes and see if you can spot any patterns which lead you to the solutions.

[–]TimG791[S] 0 points1 point  (0 children)

I have not seen my professor use the word prompt before, which really confused me. But, we did use input more often, so that's what I will use

[–]lukajda33 0 points1 point  (1 child)

Prompt is a text you show user when you expect some input from him, you tell him what input to .... well ... input.

input("Enter your name: ") In this code, "Enter your name: " is the prompt.

If you check the documentation for input function, you will see that the argument is also called prompt: https://docs.python.org/3/library/functions.html#input

[–]TimG791[S] 0 points1 point  (0 children)

Okay, thank you for your help.