Site icon Exam4Training

What is the expected output of the following code?

What is the expected output of the following code?

print(3 * ‘abc’ + ‘xyz’)
A . 3abcxyz
B . abcabcxyzxyz
C . abcabcabcxyz
D . abcxyzabcxyzabcxyz

Answer: C

Exit mobile version