Online course in Tech & Coding

Programming 103: Saving and Structuring Data

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

  • Duration 3 weeks
  • Weekly study 2 hours
  • Learn Free
  • Extra benefits From $44 Find out more

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.

Download video: standard or HD

Skip to 0 minutes and 2 secondsHow can you read and write data to computer files using Python? Why is data persistence important? How can you structure data using CSV files or JSON? This free course will teach you some simple approaches to structuring data, how to use Python dictionaries in your code, and how to use an SQL database from Python. You'll take part in practical activities, such as saving data from a role-playing game and creating a two-player battle cards game. This three-week course also contains peer-led discussions, trainer interaction, and feedback on your knowledge as you progress. You can learn whenever and wherever you want.

Skip to 0 minutes and 51 secondsSo whether you're a teacher with students of your own or simply want to boost your programming skills, this course will help you to understand how to save and structure data using Python. Sign up now at rpf.io/prog103.

What topics will you cover?

  • Creating, reading from, and writing to files using Python
  • The importance of data persistence
  • Structuring data using CSV files, Python dictionaries, and JSON files
  • How data structures aid compatibility between systems
  • Interacting with databases using SQL and Python

When would you like to start?

Most FutureLearn courses run multiple times. Every run of a course has a set start date but you can join it and work through it after it starts. Find out more

  • Available now
    This course started 4 Nov 2019

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
  • Explain the importance of data persistence and describe 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.

Who will you learn with?

Eirini K

Eirini K

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.

Who developed the course?

The Raspberry Pi Foundation works to put the power of digital making into the hands of people all over the world, so they are capable of understanding and shaping our increasingly digital world.

National Centre for Computing Education courses

Supporters

Join this course

Start this course for free, upgrade for extra benefits, or buy Unlimited to access this course and hundreds of other short courses for a year.

Free
$0

Join free and you will get:

  • Access to this course for 5 weeks

Upgrade
$44

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
New

Unlimited (New!)
$249 for one year

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.