Computational Thinking for K-12 Educators: Conditional Loops and If Statements (Coursera)

Computational Thinking for K-12 Educators: Conditional Loops and If Statements (Coursera)

Want to make a game that ends when you "catch" an object by clicking on it? Or maybe you get points based on how close you came? You'll do that in this class! This class teaches the concepts of conditional loops and if/else statements.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

For each concept, we'll start by helping you connect real-world experiences you are already familiar with to the programming concept you are about to learn. Next, through a cognitively scaffolded process we'll engage you in developing your fluency with problem solving with repeat until loops, while loops, and if/else statements in a way that keeps frustration at a minimum.
Along the way you will learn about the common challenges or "bugs" students have with these concepts as well as ways to help them find and fix those concepts. You'll also be guided in running classroom discussions to help students develop deeper understanding of these concepts.
Finally, you'll learn how to support interactive learning experiences among your students with Peer Instruction.
Additionally, you will create a resource for your classroom to support an equitable classroom.
Course 3 of 6 in the Computational Thinking & Block Programming in K-12 Education Specialization.

Syllabus

WEEK 1
Course Orientation
Meet Dr. Simon and fellow learners in this class! Find out what you’ll be doing and learning.
Conditional Loops
In this module we will learn about conditional loops and how they vary from fixed loops. We'll examine different examples of both loop types and look at some common challenges that you may come across. Finally you'll create your own conditional loop program and have the opportunity to create an assignment and conduct peer reviews.

WEEK 2
More Conditional Loops
Now that you've gotten an introduction to conditional loops, we will further explore them and their variations. We will look at why some programs require conditional loops and discuss suggestions that will help students trace each program. Finally we'll learn about a variation on the repeat until loop, called the do-while loop.

WEEK 3
If statements
In this module we'll get an introduction to conditionals, which are also known as if-else statements. First we'll examine some examples of if-else conditionals that exist in our everyday life. Next you will take a look at videos of completed programs and recreate the code. We'll end with some debugging tips and have you create your own if-else program assignment.

WEEK 4
More If statements
Now that you have a basic understanding of conditionals, we look at some more complicated cases. You'll watch a video of how a teacher introduces the topic to her class and learn about conditionals with more than 2 scenarios. You'll also look at programs with two independent conditionals and learn how this varies from else-if statements. Finally, you'll analyze some misconceptions and challenges you initially had when learning about conditionals and create resources to help others learn about conditionals.

WEEK 5
Equity & Pedagogy
In this module we take a look at peer instruction, an interactive teaching method that promotes learning. You will learn how peer instruction works and its benefits through various evidence-based studies. Then you'll determine how it can be applied to a computer science course and examine additional reasons peer instruction is beneficial in teaching computer science in class. You will have the opportunity to apply what you learn when creating a resource and peer reviewing others' work.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Introduction to EdTech (Coursera) Coursera
EDHEC Business School

Introduction to EdTech (Coursera)

Co-developed by Supercharger Ventures and EDHEC Business School. EdTech, short for Education Technology, is one of the most exciting sectors in the economy today poised to re-shape how education systems work and how people learn around the world. Introduction to EdTech MOOC is designed to explore EdTech fundamentals and build the foundational knowledge for educators, institutions, entrepreneurs and governments to appreciate the impact and potential of new tools, technologies, business models and learning methods in education.

Nov 9th 2026
4 Weeks
Cultures et pédagogies (Coursera) Coursera
University of Geneva

Cultures et pédagogies (Coursera)

Dans ce cours, nous explorons des alternatives pédagogiques qui s'inscrivent dans des contextes historiques, culturels et politiques différents. Vous découvrirez des pédagogies et des pédagogues qui opèrent une rupture avec les approches pédagogiques dominantes de notre société. Nous verrons ensemble les fondements pratiques et théoriques des apports de pédagogues à portée internationale, tels que P. Freire (Brésil) ou J. Krishnamurti (Inde).

Nov 9th 2026
5-12 Weeks
Disability Inclusion in Education: Building Systems of Support (Coursera) Coursera
University of Cape Town

Disability Inclusion in Education: Building Systems of Support (Coursera)

Worldwide millions of children are not able to fully participate in schooling, and this is especially a problem for children with disabilities. In this course, we explore the support that teachers need in order to meet the needs of children with severe to profound hearing, visual and intellectual disabilities. We consider how this can be done by talking with a range of experts (from teachers to activists) about inclusive education as well as sharing experiences of education.

Nov 9th 2026
5-12 Weeks
Constructivism and Mathematics, Science, and Technology Education (Coursera) Coursera
University of Illinois at Urbana-Champaign

Constructivism and Mathematics, Science, and Technology Education (Coursera)

This course is designed to help participants examine the implications of constructivism for learning and teaching in science, mathematics, and technology focused areas. Course readings, discussions, and assignments will examine constructivist views of learning, research on students' ideas and idea-based interactions, research on instructional approaches taking student ideas into account, and challenges in implementing constructivist perspectives in instruction.

Nov 9th 2026
5-12 Weeks
Try RRI! A guide for Responsible Research and Innovation (Coursera) Coursera
University of Amsterdam

Try RRI! A guide for Responsible Research and Innovation (Coursera)

In this online course you will learn how to apply Responsible Research and Innovation (RRI) in your own work. First by understanding why it is important to act responsibly in your research and innovation processes at all. In a second step, you will get introduced to several tools that will help make your own work in research and/or innovation more aware by introducing concepts of RRI.

Nov 9th 2026
3 Weeks
Critical Thinking Skills for University Success (Coursera) Coursera
The University of Sydney

Critical Thinking Skills for University Success (Coursera)

In this course, you will learn how to develop your Critical Thinking Skills to help you achieve success in your university studies. After completing this course, you will be able to: 1. Use critical thinking and argumentation in university contexts to improve academic results ; 2. Understand the importance and function of critical thinking in academic culture ; 3. Use a variety of thinking tools to improve critical thinking ; 4. Identify types of argument, and bias within arguments, in order to better evaluate the strength of arguments; 5. Use evidence to support claims in arguments ; 6. Apply critical thinking and argumentation to real world problems and issues

Nov 2nd 2026
5-12 Weeks
Teaching LGBTQ+ Health (Coursera) Coursera
Stanford University

Teaching LGBTQ+ Health (Coursera)

This curriculum is designed for faculty members and health professions educators. The course goals are to improve your knowledge, teaching skills, and attitudes pertaining to the provision of health care to LGBTQ+ patients.e.g. This is primarily aimed at first- and second-year undergraduates interested in engineering or science, along with high school students and professionals with an interest in programming.

Nov 9th 2026
2 Weeks
Tinkering Fundamentals: Circuits (Coursera) Coursera
Exploratorium

Tinkering Fundamentals: Circuits (Coursera)

The Tinkering Fundamentals course will offer educators and enthusiasts an opportunity to develop a practice of tinkering and making. We see tinkering as a serious endeavor -- one that is generalizable across content and especially good at interweaving disciplines in a way that leads to complex projects and individualized learning opportunities.

Nov 2nd 2026
5-12 Weeks
Problem Solving Using Computational Thinking (Coursera) Coursera
University of Michigan

Problem Solving Using Computational Thinking (Coursera)

Have you ever heard that computers "think"? Believe it or not, computers really do not think. Instead, they do exactly what we tell them to do. Programming is, "telling the computer what to do and how to do it." Before you can think about programming a computer, you need to work out exactly what it is you want to tell the computer to do. Thinking through problems this way is Computational Thinking. Computational Thinking allows us to take complex problems, understand what the problem is, and develop solutions. We can present these solutions in a way that both computers and people can understand.

Nov 9th 2026
5-12 Weeks
Engaging ELLs and Their Families in the School and Community (Coursera) Coursera
Arizona State University

Engaging ELLs and Their Families in the School and Community (Coursera)

In this course, you will learn how to better and more successfully engage your ELL(s) and their families in the school and community. You will learn how to engage your ELL student in the classroom setting as well as in various aspects of the school including extracurricular activities and the inner workings of the school and education system. You will also be introduced to strategies for engaging the families of your ELL students in the school community and the wider community of your city and state.

Nov 2nd 2026
5-12 Weeks