Question

Which of the following statements will convert a string stored in "inputResults" to an integer variable called "age"?
Select one:

a.
age = int(inputResults)


b.
inputResults = parse(age)


c.
age = inputResults.parse()


d.
age.int(inputResults)

Answers

GPT 3.5
a.
age = int(inputResults)
Which function would you use to convert a string value to a floating point value?
Select one:

a.
int()


b.
parse()


c.
float()


d.
decimal()
GPT 3.5
c.
float()
How many input parameters are provided to the str.format() function?
Select one:

a.
1 only


b.
None


c.
3 only


d.
1 or more as needed to build your output string
GPT 3.5
d.
1 or more as needed to build your output string

Related Questions