### Top 50 MOOCs

Get started with custom lists to organize and share courses.

To support our site, Class Central may be compensated by some course providers.

# Computing in Python II: Control Structures

316
students interested

Taken this course? Share your experience with other students. Write review

## Overview

Building on your prior knowledge of variables and operators, this course gets into the meat of programming. Organized 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.

## Syllabus

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.

David Joyner

## Reviews for edX's Computing in Python II: Control Structures 5.0 Based on 4 reviews

• 5 stars 100%
• 4 star 0%
• 3 star 0%
• 2 star 0%
• 1 star 0%

Did you take this course? Share your experience with other students.

• 1
Anonymous
5.0 2 weeks ago
completed this course.
I found the CS1301xII course to be well organized, the lectures are well presented and succinct, and problem sets are extensive and detail common mistakes and nuances. This is an excellent primer into Python concerning if/then/else statements, for and while loops, and error catching with try/except/else/finally blocks. The math required is basic arithmetic. David Joyner seems like a professor to follow.
Wim L
5.0 yesterday
by completed this course, spending 20 hours a week on it and found the course difficulty to be medium.
I have programmed - without taking any course - in Python 2.x more than 10 years ago (and I forgot most of it). I am interested in data science and was looking for a Python course as a first step up. I was also looking at an introductory programming course suitable for my kids; Python is perfect for that.

I have followed all 4 "Computing in Python"- courses, and I feel I'm ready to take on an intermediate course now. Each course is divided in 4 chapters, each chapter ends with an "exam", the course ends with a final exam. Each course took me about a week to complete (5 evenings a…
G L
5.0 2 days ago
by completed this course, spending 10 hours a week on it and found the course difficulty to be medium.
Thank you Mr. David. I have done the chapter 2 and going to chapter 3 soon, but tomorrow is the first day of second semester, maybe i'll continue in a few days. I had studied C++ on first semester so it isn't so hard for me to cope with learning python. But anyone who wants to learn python even from NULL experience can start with this course!! i really recommend it, because the way the lecturer explain things is quite very detail so YOU CAN DO IT!! Best Luck for you!!
Wolfgang H
5.0 6 days ago
completed this course, spending 15 hours a week on it and found the course difficulty to be medium.
Thanks a lot for an almost perfect learning experience!

Well structured theoretical stuff quickly followed by practice, practice, practice....

That's what keeps you holding on!!!!