Python control flow loops and functions

Open to
Government analysts
Training category
Analytical
Type of training
Online
Length
3 hours
Organiser
Data Science Campus Faculty
Provider
Data Science Campus Faculty
Location
Online

Description

Loops, Control Flow and the ability to write your own functions are valuable programming tools. Use of these tools help to reduce repetition in code; improving readability and following good coding practices. This short course covers and introduction to these topics and demonstrates areas for additional learning.

Learning outcomes

By the end of the session you will be able to:

  • use For loops
  • use While loops
  • use If Elif and Else Control Flow
  • write your own basic functions
  • understand ‘scope’ in terms of functions
  • be aware of how functions can be applied to DataFrames

Introduction to Python‘ is a pre-requisite for this course.

How to book

Please use your Learning Hub account to access this course online. If you do not have a Learning Hub account, please contact Data.Science.Campus.Faculty@ons.gov.uk.

Contact

If you would like more information about this course, please email Data.Science.Campus.Faculty@ons.gov.uk. 

Related courses

R control flow loops and functions