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

How to Write and Publish a Scientific Paper (Project-Centered Course) (Coursera) Coursera
École Polytechnique

How to Write and Publish a Scientific Paper (Project-Centered Course) (Coursera)

In this project-based course, you will outline a complete scientific paper, choose an appropriate journal to which you'll submit the finished paper for publication, and prepare a checklist that will allow you to independently judge whether your paper is ready to submit. What you'll need to get started: This course is designed for students who have previous experience with academic research - you should be eager to adapt our writing and publishing advice to an existing personal project.

Jun 22nd 2026
4 Weeks
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.

Jun 22nd 2026
4 Weeks
Teach English Now! Foundational Principles (Coursera) Coursera
Arizona State University

Teach English Now! Foundational Principles (Coursera)

Through a series of engaging metaphors and stories, prospective and current EFL/ESL teachers will identify, summarize, and evaluate 7 basic language learning paradigms. Learners will be presented information on such foundational principles as motivation, risk taking, two different modes of learning, and balancing the teacher profession. Learners are also given an understanding of basic techniques founded on those principles, such as teacher talk, looking “ridiculous” in order to lower the affective filter, and networking. With these foundational principles in mind, ESL/EFL teachers will scrutinize common assumptions about language learning by comparing how they stack up to research-based core principles.

Jun 22nd 2026
5-12 Weeks
Evaluación para el aprendizaje: Enfoque cuantitativo (Coursera) Coursera
Universidad Nacional Autónoma de México

Evaluación para el aprendizaje: Enfoque cuantitativo (Coursera)

La perspectiva contemporánea de la educación ha considerado que dentro del proceso educativo es indispensable la evaluación como una parte esencial de la enseñanza y el aprendizaje. Realizar este proceso de manera adecuada requiere de una formación especializada que nos permita conocer tanto el proceso en sí mismo, así como los elementos involucrados en él y la pertinencia de hacer uso de las técnicas e instrumentos más adecuados y necesarios para cada tipo de evaluación.

Jun 22nd 2026
4 Weeks
Formación docente basada en la práctica para desarrollar habilidades del siglo XXI (Coursera) Coursera
Pontificia Universidad Católica de Chile

Formación docente basada en la práctica para desarrollar habilidades del siglo XXI (Coursera)

El curso presenta, en primer lugar, las habilidades del siglo XXI y su relevancia para la formación docente con el fin de preparar docentes para la sociedad del conocimiento, capaces de pensar de manera crítica y creativa y con habilidades de comunicación y colaboración para promover oportunidades de aprendizaje equitativas y de calidad en los contextos escolares. En segundo lugar, se discute sobre el enfoque basado en la práctica para la formación docente y la necesidad de ofrecer andamiajes que les permitan a los docentes aprender a poner en acto prácticas generativas complejas que requieren conocimientos especializados.

Jun 22nd 2026
5-12 Weeks
Communication Skills for University Success (Coursera) Coursera
The University of Sydney

Communication Skills for University Success (Coursera)

This Specialization is aimed at preparing students for undergraduate study in an English-speaking university. The course equips you for full participation and engagement with your studies by building awareness and understanding of the core values and expectations of academic culture, and providing you with practical strategies to apply to your studies. In this course, you will learn how to develop your Communication Skills to help you achieve success in your university studies.

Jun 22nd 2026
5-12 Weeks
Critical Issues in Urban Education (Coursera) Coursera
University of Chicago

Critical Issues in Urban Education (Coursera)

Urban school reform in the United States is characterized by contentious, politicized debate. This course explores a set of critical issues in the education and educational reform space, with a focus on aspects of the field that have sparked controversy and polarized views. We will dig into these debates, situating them within the larger history of public education and school reform, and considering the viewpoints, the evidence, and translation of issues into educational policy.

Jun 22nd 2026
5-12 Weeks
Training and Learning Programs for Volunteer Community Health Workers (Coursera) Coursera
Johns Hopkins University

Training and Learning Programs for Volunteer Community Health Workers (Coursera)

Volunteer community health workers (CHWs) are a major strategy for increasing access to and coverage of basic health interventions. Our village health worker training course reviews the process of training and continuing education of CHWs as an important component of involving communities in their own health service delivery. Participants will be guided through the steps of planning training and continuing education activities for village volunteers. The course draws on real-life examples from community-directed onchocerciasis control, village health worker programs, community case management efforts, peer educators programs and patent medicine vendor training programs, to name a few.

Jun 22nd 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.

Jun 22nd 2026
5-12 Weeks
Teach English Now! Lesson Design and Assessment (Coursera) Coursera
Arizona State University

Teach English Now! Lesson Design and Assessment (Coursera)

Learners will be introduced to designing lesson plans based on principles and knowledge of learning objectives, assessment plans, methods, materials, and learning activities. Learners will find and prepare appropriate teaching materials through careful analysis, adaptation and creation of professional resources. Learners will also reflect on the cohesion between lesson design and teaching philosophies.

Jun 22nd 2026
5-12 Weeks
Utilizing Engaging Assessment with Boom Learning (Coursera) Coursera
Coursera Project Network

Utilizing Engaging Assessment with Boom Learning (Coursera)

By the end of this project, you will be ready to use Boom Learning with your class. Boom Learning allows teachers to use self-grading digital task cards (Boom Cards) with their students to check for understanding. Students love using Boom Learning and teachers love the data they can collect as their students engage with technology and subject matter content. Throughout each task, we will work together to ensure that you are ready to use Boom Learning to engage and assess your students.

Jun 22nd 2026
Self-Paced
Teaching Impacts of Technology: Global Society (Coursera) Coursera
University of California, San Diego

Teaching Impacts of Technology: Global Society (Coursera)

In this course you’ll focus on how technology-enabled communication is changing geopolitics and, more broadly, how technology is connecting our world and changing lives. This will be done through a series of paired teaching sections, exploring a specific “Impact of Computing” in your typical day and the “Technologies and Computing Concepts” that enable that impact, all at a K12-appropriate level.

Jun 25th 2026
4 Weeks