nerdexam
Python_Institute

PCEP-30-02 · Question #357

Insert the code boxes in the correct positions in order to build a line of code which prints the values assigned to the x and y variables separated by a semicolon ( ; ) (Note: some code boxes will…

The correct line of code to print x and y separated by a semicolon is: print(x, y, sep=';')

Module 2: Data Types, Variables, Basic Input-Output Operations, Basic Operators

Question

Insert the code boxes in the correct positions in order to build a line of code which prints the values assigned to the x and y variables separated by a semicolon ( ; ) (Note: some code boxes will not be used).

Explanation

The correct line of code to print x and y separated by a semicolon is: print(x, y, sep=';')

Topics

#print function#sep parameter#output formatting#variables

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice