Print in Python | Sololearn: Learn to code for FREE!

+5

Print in Python

#why do both these give the same output print("the CMBR\n\n []") print(("the CMBR\n\n []"))

4/10/2021 4:06:55 AM

Sanjay Kamath

5 Answers

New Answer

+3

Python executes the inner parenthesis first,then the outer

+9

Sanjay Kamath Paranthesis () just tell you that you are using method. Doens't matter how much time you write it. It will always give same output.

+2

Because both are same

+1

Change the sentence in anyone of them

+1

You will find that