- Pyroom
- Tutorials
- Files and resources
- Read CSV data and images as resources
Read CSV data and images as resources
Programs often need data. Resources let your code open uploaded files from the resources folder.
Intermediate Video coming soon. The steps below show everything the video will cover.
Steps
- Open File, Resources, then Add resources, and choose your files: a CSV table and a picture.
- Open the file from the resources folder and read it line by line.
- Run it. Every row of the table is printed.
- Manage resources shows what is loaded. Resources are not in share links, so add them again in a new session.
Read the transcript
Open File, Resources, then Add resources, and choose your files: a CSV table and a picture.
Open the file from the resources folder and read it line by line.
Run it. Every row of the table is printed.
Manage resources shows what is loaded. Resources are not in share links, so add them again in a new session.
More Files and resources tutorials
- Import and export a Python file · Beginner