nerdexam
Python_Institute

PCEP-30-02 · Question #133

Insert the correct piece of code, so that the program produces the expected output. Expected output: `` Andy Brown ` Code: `python insert code here print(AndyInBrown) ``

To produce the expected output "Andy\nBrown" from print(AndyInBrown), the variable AndyInBrown must hold the string "Andy\nBrown". ``python AndyInBrown = "Andy\nBrown" print(AndyInBrown) ``

Cybersecurity Concepts and Principles

Question

Insert the correct piece of code, so that the program produces the expected output. Expected output:
Andy
Brown
Code:
# insert code here
print(AndyInBrown)

Explanation

To produce the expected output "Andy\nBrown" from print(AndyInBrown), the variable AndyInBrown must hold the string "Andy\nBrown".

AndyInBrown = "Andy\nBrown"
print(AndyInBrown)

Topics

#Python scripting#code completion#scripting#automation

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice