Understanding the Print Function in Python

Understanding the Print Function in Python

Assessment

Interactive Video

Computers

6th - 8th Grade

Practice Problem

Hard

Created by

Nancy Jackson

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default separator used by the print function in Python?

Colon

Space

Comma

Semicolon

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change the default separator in the print function?

By using the 'end' argument

By using the 'format' function

By using the 'sep' argument

By using the 'join' method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you set the 'sep' argument to an empty string?

It adds a period between the strings

It adds a space between the strings

It removes any space between the strings

It adds a comma between the strings

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be used as a separator in the print function?

Only spaces

Only commas

Only special characters

Any string

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you add multiple spaces between strings using the 'sep' argument?

By using a loop

By using the 'format' function

By using the 'end' argument

By multiplying a space string

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?