logo CodeStepByStep logo

print_myself

Language/Type: Python file input

Write a complete program that prints itself to the console as output. Assume that the program is stored in a file named print_myself.py, and make your code open that file and print its contents to the console.

Complete program: Write an entire program that you could put into a file and run outside of CodeStepByStep.

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.