Single Choice Not Set

QMultiple values specified in parentheses to print function will display each value separated with this by default ...

ID: #3397 Python Basic MCQ 1,296 views
Question Info
#3397Q ID
Not SetDifficulty
Python Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Single Space
  • B Double Space
  • C A new Line
  • D Double Lines
Correct Answer

Explanation

The print() function can display multiple values in a single statement. By default, it separates each value with a single space.

Example:

name = "Alice"
age = 20

print(name, age)

Output:

Alice 20

This happens because the default value of the sep parameter in the print() function is " " (a single space).

Example:

print("Python", "Programming", "Language")

Output:

Python Programming Language

The other options are incorrect because the print() function does not separate multiple values with double spaces, new lines, or double lines unless the sep parameter is explicitly changed.

Therefore, the correct answer is Option A) Single Space.

Share This Question

Challenge a friend or share with your study group.