Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) What will be the output of the following Python code? >>>print('new' 'line')

(A) error
(B) output equivalent to print ‘new\\nline’
(C) newline
(D) new line
Correct answer : Option (C) - newline

Explanation:
 string literal separated by whitespace are allowed. they are concatenated.

Share

Discusssion

Login to discuss.