65.0k views
5 votes
What needs changing to make the following code work?

age = 15
print("The user's age is: " + age)

Group of answer choices

Change the print statement to read:
print("The user's age is: " + str(age))

Omit the apostrophe (')

Nothing, the code works as-is

Change the print statement to read:
print("The user's age is: " + int(age))

1 Answer

5 votes

Answer:

print("The user/'s age is:" + age)

Step-by-step explanation:

You can not use apostrophes in strings.

User Kyanna
by
5.8k points