MCQs > IT & Programming > Python > Which statement will redirect the output of the print statement into a file-like object named 'test'?

Python MCQs

Which of the following statements will redirect the output of the print statement into a file-like object named 'test'?

Answer

Correct Answer: print >> open('test','w'), "Pi: %.3f" % 3.1415, 27+11

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