Computer Science, asked by tanishkas708, 5 months ago

Write the output of the

following python code:

text = "Test.\n Next line." =

print (text)​

Answers

Answered by shivakumarjagadish12
1

Answer:

Test.

Next line.

Explanation:

this is because \n will go to the new line in python there for givin' that result.

hope it helped ya.

Answered by anindyaadhikari13
2

Answer:-

Given code,

text = "Test.\n Next line."

print (text)

Output will be,

Text

Next line.

As there is an escape sequence present i.e., \n so it will go to the next line.

Similar questions