Learn how to save and structure data in external files, and import files back into your Python programs. Supported by Google.

- Duration3 weeks
- Weekly study2 hours
- 100% onlineTry this course for free
Programming 103: Saving and Structuring Data
Discover how to save data to use it across multiple runs of your program
On this course, you will learn how to save text and binary files, and how to structure data so that programs can interpret it correctly.
You will explore various common types of structured files, including CSV and JSON, and also find out how to connect to a SQL database to use it in your Python programs.
Syllabus
Week 1
Persistent Data
Welcome to the course
Welcome to Programme 103: Saving and Structuring Data!
Reading and writing to files
Learn about reading and writing to files.
Creating a high score for a game
Learn how data persistence is key to many different applications.
End of Week 1
Congratulations on completing Week 1 of the course!
Week 2
Structuring data
Welcome to Week 2
Welcome to Week 2!
Structuring Data
Learn how to structure data.
Saving game progress
Learn how to use structured data to persist information.
Data validation
Learn about the importance of data validation in programming.
End of week 2
Congratulations on completing Week 2 of the course!
Week 3
Interacting with databases
Welcome to Week 3
Welcome to your third week of Programming 103: Saving and Structuring Data!
Python and databases
Learn about interacting with databases using Python
Make a battle card game
Learn how to make your own battle card game.
End of the course
Congratulations on completing the course!
When would you like to start?
Start straight away and learn at your own pace. If the course hasn’t started yet you’ll see the future date listed below.
Available now
What will you achieve?
By the end of the course, you‘ll be able to...
- Demonstrate how to use Python to store and retrieve persistent data
- Describe the importance of data persistence and where it is used
- Compare different types of structured data
- Modify a program to store data in a JSON file
- Perform operations on a database using SQL statements
Who is the course for?
This course is designed for those who have a little Python experience and are comfortable using functions with parameters–as covered in our Programming 102 course. Please note: screengrabs and recorded screencasts are key elements of this course.
What do people say about this course?
Another great course. You make it all seem so easy and you make it a lot easier for me to explain all this to my students. Thank you
Ruth Davey
Who will you learn with?
Eirini is a Learning Manager at Raspberry Pi. An ex-teacher and marketing person, she cares about getting more girls into Computing. She loves the outdoors; dancing, swimming and walking in nature.
Learner reviews
Join this course
Free
Join free and you will get:
- Access to this course for 5 weeks
Upgrade
Upgrade this course and you will get:
- Access to this course for as long as it’s on FutureLearn
- A print and digital Certificate of Achievement once you’re eligible
Unlimited
Buy Unlimited and you will get:
- Access to this course, and hundreds of other FutureLearn short courses and tests for a year
- A printable digital Certificate of Achievement on all short courses once you’re eligible
- The freedom to keep access to any course you've achieved a digital Certificate of Achievement on, for as long as the course exists on FutureLearn
- The flexibility to complete your choice of short courses in your own time within the year
Find out more about upgrades or Unlimited.
Do you know someone who’d love this course? Tell them about it...
You can use the hashtag #RPiLearn to talk about this course on social media.