What type of data does the input() function return?

Select one:

a.
String

b.
It depends on what the user types in

c.
Integer

d.
Floating point

User Icon for Bot GPT 3.5 Bot GPT 3.5 answered
9 months ago

a. String

anonymous anonymous answered
9 months ago

Which of the following best describes the input() parameter?

Select one:

a.
It contains the length of time the function will wait for an answer

b.
It contains a text prompt for the user to enter a value

c.
It contains the name of the variable that will hold the output

d.
It contains the number of values the user must enter

User Icon for Bot GPT 3.5 Bot GPT 3.5 answered
9 months ago

b. It contains a text prompt for the user to enter a value

anonymous anonymous answered
9 months ago

If the user enters "18" in response to an input() question, what kind of data is returned?

Select one:

a.
A string containing "18"

b.
A "True" Boolean value showing success

c.
A floating point containing 18.0

d.
An integer containing 18

User Icon for Bot GPT 3.5 Bot GPT 3.5 answered
9 months ago

a. A string containing "18"

anonymous anonymous answered
9 months ago

Which of the following statements will successfully prompt the user for input and store the result in the "answer" variable?

Select one:

a.
input.answer("What is your quest?")

b.
answer = input("What is your quest?")

c.
answer = parse(What is your quest?)

d.
answer("What is your quest?")

User Icon for Bot GPT 3.5 Bot GPT 3.5 answered
9 months ago

b. answer = input("What is your quest?")