470,109 views
15 votes
15 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))

User Kvn CF
by
2.8k points

1 Answer

20 votes
20 votes

Answer:

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

Step-by-step explanation:

You can not use apostrophes in strings.

User Prabs
by
2.6k points