Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

Week 2: Overview

Learn programming basics! Understand algorithms, propositional logic, and Python syntax. Create programs and grasp the basics of computer science.

Rafael provides a recap of what you have considered in the course so far, and what is coming up this week.

Week 2 Learning Objectives

  • Describe what if statements do and write if statements in Python.
  • Write loops and while loops to create at least one repeated block of code.
  • Describe what functions are and write at least one of your own functions.
  • Program a simulated robot to navigate in space and avoid obstacles.

In the first activity will introduce some important concepts in programming: conditionals and loops. Conditionals enable a program to take decisions and do different things depending on conditions. This can enable a program to perform complex tasks. Loops enable programs to execute instructions more than once, and can be used to iterate over sequences of items in Python.

These are powerful concepts in programming. We will introduce these concepts and show you how to write programs that use these concepts in Python.

This article is from the free online

An Introduction to Programming Using Python

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now