123k views
2 votes
True or False:
The code:
print("I am", 17, "years old") will output:
I am17years old

User Lkkkk
by
8.4k points

1 Answer

6 votes

Final answer:

The code:print("I am", 17, "years old") will output:I am17years old is false. The correct output is I am 17 years old.

Step-by-step explanation:

The statement "The code:print("I am", 17, "years old") will output:I am17years old" is false.

When you use the print() function in Python, it automatically adds spaces between the arguments.

So, the correct output would be: I am 17 years old.

User HAO CHEN
by
8.0k points

No related questions found