1. Pyroom
  2. Tutorials
  3. Files and resources
  4. Import and export a Python file

Import and export a Python file

Move code between Pyroom and any other editor: import a .py file, then export it again to keep a copy.

Beginner Video coming soon. The steps below show everything the video will cover.

Steps

  1. Open File, then Import file, and pick a .py file. It replaces the code in the editor.
  2. Run it like any other program.
  3. To keep a copy, open File and choose Export file. Your browser downloads a .py file.
Read the transcript

Open File, then Import file, and pick a .py file. It replaces the code in the editor.

Run it like any other program.

To keep a copy, open File and choose Export file. Your browser downloads a .py file.

More Files and resources tutorials

Files and resources → · All tutorials →

Try it in the Playground

Nothing to install and no account needed.

Open Playground →