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

University Teaching (Coursera) Coursera
University of Hong Kong

University Teaching (Coursera)

University Teaching is an introductory course in teaching and learning in tertiary education, designed by staff at the Centre for the Enhancement of Teaching and Learning at the University of Hong Kong. With input from instructors, guests and interviewees, including teaching award winners, students, and experts in the fields, you will be exposed to research evidence in relation to effective university teaching and practical instructional design strategies. You will also be exposed to multiple examples of effective teaching, and hear the views of teachers whose teaching has been judged to be excellent.

Oct 26th 2026
5-12 Weeks
Programación en Python (Coursera) Coursera
Universidad de los Andes

Programación en Python (Coursera)

¡Te damos la bienvenida al curso de Programación en Python de la Universidad de los Andes! El propósito de este curso es ofrecerte un ambiente interactivo para que desarrolles tus habilidades de pensamiento computacional, aprendas a programar en el lenguaje Python y te entrenes en la resolución de problemas utilizando un computador. La estrategia pedagógica empleada es el aprendizaje activo basado en casos.

Oct 26th 2026
4 Weeks
Foundations of Teaching for Learning: Introduction (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Introduction (Coursera)

The Foundations of Teaching for Learning programme is for anyone who is teaching, or who would like to teach, in any subject and any context - be it at school, at home or in the workplace. With dynamic lessons taught by established and respected professionals from across the Commonwealth, this eight course programme will see you develop and strengthen your skills in teaching, professionalism, assessment, and more. As you carry on through the programme, you will find yourself strengthening not only your skills, but your connection with colleagues across the globe. A professional development opportunity not to be missed.

Oct 19th 2026
4 Weeks
Advanced Instructional Strategies in the Virtual Classroom (Coursera) Coursera
University of California, Irvine

Advanced Instructional Strategies in the Virtual Classroom (Coursera)

Welcome to Advanced Instructional Strategies in the Virtual Classroom! This course will help you apply strategies to the critical areas of K-12 virtual instruction to significantly impact virtual education. We will examine the pitfalls beginning teachers run into and learn how to overcome them by focusing on the fundamentals that have the greatest impact on student learning in a blended or online environment. By the end of the course, you will be able to empower your students to be voracious learners who are ready to go out and make the world a better place to live.

Oct 26th 2026
5-12 Weeks
Aprendiendo a Aprender (Coursera) Coursera
IE Business School

Aprendiendo a Aprender (Coursera)

Con el propósito de desarrollar habilidades y herramientas mentales que favorecen el aprendizaje, Aprendiendo a Aprender busca ayudar a los participantes a dominar temas complejos y difíciles; además de motivarlos a continuar aprendiendo a lo largo de la vida. Aprendiendo a Aprender se encuentra divido en cuatro grandes módulos: en el primero, se explica en qué consiste realmente aprender, qué pasa en el cerebro cuando aprendemos, el rol de la memoria, la práctica regular, y el hecho de que, durmiendo, también se puede aprender.

Oct 26th 2026
4 Weeks
The Dynamic Earth: A Course for Educators (Coursera) Coursera
American Museum of Natural History

The Dynamic Earth: A Course for Educators (Coursera)

The AMNH course The Dynamic Earth: A Course for Educators provides students with an overview of the origin and evolution of the Earth. Informed by the recently released Next Generation Science Standards, this course examines geological time scales, radiometric dating, and how scientists “read the rocks.” We will explore dramatic changes in the Earth over the last 4 billion years, including how the evolution of life on Earth has affected its atmosphere. In addition to looking at geology on a global scale, participants will take to their own backyards to explore and share their local geologic history.

Oct 19th 2026
4 Weeks
Foundations of Teaching for Learning: Being a Teacher (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Being a Teacher (Coursera)

The Foundations of Teaching for Learning programme is for anyone who is teaching, or who would like to teach, in any subject and any context - be it at school, at home or in the workplace. With dynamic lessons taught by established and respected professionals from across the Commonwealth, this eight course programme will see you develop and strengthen your skills in teaching, professionalism, assessment, and more. As you carry on through the programme, you will find yourself strengthening not only your skills, but your connection with colleagues across the globe. A professional development opportunity not to be missed.

Oct 19th 2026
5-12 Weeks
Disability Awareness and Support (Coursera) Coursera
University of Pittsburgh

Disability Awareness and Support (Coursera)

The goal of this course is to promote equal opportunity and the full participation of students with disabilities in higher education by helping participants advance their awareness of the meaning of accessibility in education. Participants will gain competence and confidence in working with students by focusing on legislation, universal design, and assistive technologies. Thank you to Abbas (Bobby) Husain Quamar, Graduate Student Researcher in the Department of Rehabilitation Science and Technology at the University of Pittsburgh, for his contributions to the course.

Oct 26th 2026
4 Weeks
Foundations of Teaching for Learning: Introduction to Student Assessment (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Introduction to Student Assessment (Coursera)

The Foundations of Teaching for Learning programme is for anyone who is teaching, or who would like to teach, in any subject and any context - be it at school, at home or in the workplace. With dynamic lessons taught by established and respected professionals from across the Commonwealth, this eight course programme will see you develop and strengthen your skills in teaching, professionalism, assessment, and more. As you carry on through the programme, you will find yourself strengthening not only your skills, but your connection with colleagues across the globe. A professional development opportunity not to be missed.

Oct 19th 2026
5-12 Weeks
Design Thinking for the Greater Good: Innovation in the Social Sector (Coursera) Coursera
University of Virginia

Design Thinking for the Greater Good: Innovation in the Social Sector (Coursera)

Do you work for a nonprofit or in the social sector? Are you struggling to solve the problems and meet the needs of the people you serve? Come learn more about how design thinking, a human-centered approach to problem solving, can help you truly understand an issue, generate ideas worth testing and iterate to find solutions that make a real difference. Through global stories from areas as diverse as government, health care, and education, we’ll show you the tools, techniques and mindset needed to use design thinking to uncover new and creative solutions in the social sector.

Oct 26th 2026
4 Weeks
Foundations of Teaching for Learning: Planning for Teaching and Learning (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Planning for Teaching and Learning (Coursera)

The Foundations of Teaching for Learning programme is for anyone who is teaching, or who would like to teach, in any subject and any context - be it at school, at home or in the workplace. With dynamic lessons taught by established and respected professionals from across the Commonwealth, this eight course programme will see you develop and strengthen your skills in teaching, professionalism, assessment, and more. As you carry on through the programme, you will find yourself strengthening not only your skills, but your connection with colleagues across the globe. A professional development opportunity not to be missed.

Oct 19th 2026
5-12 Weeks
Evolution: A Course for Educators (Coursera) Coursera
American Museum of Natural History

Evolution: A Course for Educators (Coursera)

How are all of the species living on Earth today related? How does understanding evolutionary science contribute to our well-being? In this course, participants will learn about evolutionary relationships, population genetics, and natural and artificial selection. Participants will explore evolutionary science and learn how to integrate it into their classrooms.

Oct 19th 2026
4 Weeks