MCQs > IT & Programming > Python > Which command would produce the following result: result: 'line 1\nline 2'

Python MCQs

Which of the following commands would produce the following result:

result: 'line 1\nline 2'

Answer

Correct Answer: result = '\nline 1\nline 2\n'.strip()

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it