logo CodeStepByStep logo

write_four_lines

Language/Type: Python file output

Write a function named write_four_lines that prints the following four lines of text into a file named message.txt, in the same directory as your program. Notice that the third line is blank.

Testing,
1, 2, 3.

This is my output file.
Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.