Computing in Python II: Control Structures

DescriptionQuantityAmountTotalTax
Course Fee1R 1,007.00R 1,007.00R 0.00 (0%)
Total amountR 1,007.00
Paypal

Overview

Learn about control structures, one of the most powerful parts of programming. This course, offered through the edX® platform, covers conditionals, loops, functions, and error handling, specifically in Python but with broader applicability to other languages as well. Building on your prior knowledge of variables and operators, this course gets into the meat of programming.

Organised into five chapters, this course starts by covering the fundamentals of what control structures are and what they do, then moves on to four common control structures in Python. Conditionals let you modify what your program does, based on the values of incoming variables. Loops let you repeat tasks for multiple values or while certain conditions hold true.

Functions let you encapsulate complex reasoning into reusable chunks of code. Error handling lets you intelligently recover from anticipated and unanticipated glitches.

By the end of this course, you'll be able to write complex programs in Python that perform useful reasoning.

For example, you could write a program that calculates your weight on other planets, calculates the standard deviation of a series of numbers, or checks for the validity of an incoming password. Structurally, the course is comprised of several parts. Instruction is delivered via a series of short (2-3 minute) videos.

In between those videos, you'll complete both multiple choice questions and coding problems to demonstrate your knowledge of the material that was just covered.

Go Further with XSeries Programs
Created by world-renowned experts and top universities, XSeries programs provide a deep understanding of exciting and in-demand fields. Earn a certificate of achievement to demonstrate your knowledge.

The X-Series Programme is comprised of the following courses:

Computing in Python I: Fundamentals and Procedural Programming
This course, offered through the edX® platform, starts from the beginning, covering the basics of how a computer interprets lines of code; how to write programs, evaluate their output, and revise the code itself; how to work with variables and their changing values; and how to use mathematical, boolean, and relational operators.
View the course

Computing in Python II: Control Structures
Organised into five chapters, this course starts by covering the fundamentals of what control structures are and what they do, then moves on to four common control structures in Python. By the end of this course, you'll be able to write complex programs in Python that perform useful reasoning. By the end of this course, you'll be able to write complex programs in Python that perform useful reasoning.
View the course

Computing in Python III: Data Structures
Learn about more complex ways of handling data, specifically in Python but with broader applications to other programming languages. This course, offered through the edX® platform, covers strings, lists, dictionaries, and file input and output for building complex, useful programs.
View the course

Computing in Python IV: Objects & Algorithms
Learn about the more advanced applications of introductory computer science by covering search algorithms, sorting algorithms, and object-oriented programming. Taught in Python, these lessons are readily generalisable to other languages as well. Complete your introductory knowledge of computer science with this final course on objects and algorithms.
View the course

edX® is a registered trademark of edX® Inc. All Rights Reserved.

  • Start Date
    18 February 2019
  • Programme duration
    5 weeks
  • Estimated effort
    9 to 10 hours per week
  • Fee
    R1007
  • Institution
    GTx
  • Language
    English
Start Dates
  • How control structures can affect how other lines of code run.
  • Conditionals, including if, else-if, and else, for complex reasoning.
  • Loops, including for loops, for-each loops, and while loops for repeated behaviours.
  • Functions, for encapsulating code into reusable chunks.
  • Error handling, for anticipating and resolving expected errors.

Chapter 1: Control Structures.
The basic role of control structures in general: lines of code that control other lines of code, determining when they execute.

Chapter 2: Conditionals.
Building complex reasoning into our code by letting it make decisions based on the changing values of variables, like recommending a raincoat if it's going to rain or issuing a passing grade if a student's average is over 70.

Chapter 3: Loops.
Building even more complex reasoning with for loops and while loops, both of which repeat certain lines of code over and over for every value in a list or while some condition is true.

Chapter 4: Functions.
Encapsulating blocks of code into reusable functions that can be called as needed, including specifying their input and dictating their output.

Chapter 5: Error Handling.
Reacting gracefully when anticipated or unanticipated errors occur during your program's execution.

Meet Student Advisors

Arlene Lanser

Pearson Student Advisor

Meet our Faculty

David Joyner

Lecturer at the College of Computing