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

Copyright for Educators & Librarians (Coursera) Coursera
Duke University,Emory University,University of North Carolina at Chapel Hill

Copyright for Educators & Librarians (Coursera)

Fear and uncertainty about copyright law often plagues educators and sometimes prevents creative teaching. This course is a professional development opportunity designed to provide a basic introduction to US copyright law and to empower teachers and librarians at all grade levels. Course participants will discover that the law is designed to help educators and librarians.

Nov 9th 2026
5-12 Weeks
Diversity and Inclusion in Education (Coursera) Coursera
University of Glasgow

Diversity and Inclusion in Education (Coursera)

Student diversity is becoming the rule rather than the exception in education systems across the world. Students bring to classroom different characteristics such as ability and disability, socio-economic background, race, ethnicity, and cultural background, beliefs and religion, and gender characteristics. The United Nations’ Sustainable Development Goal 4 aims to ensure inclusive and equitable quality education and promote lifelong learning opportunities for all (United Nations, 2015).

Nov 2nd 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
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
Usos didácticos del cine: Introducción al análisis (Coursera) Coursera
Universidad Nacional Autónoma de México

Usos didácticos del cine: Introducción al análisis (Coursera)

¡Hola! Bienvenido al MOOC "Usos Didácticos del Cine: Introducción al Análisis", ofrecido por la UNAM. A lo largo de este curso, te presentaremos varias formas de usar películas en tus clases para mejorar el rendimiento de tus estudiantes. Además, podrás acceder a una variedad de herramientas y marcos conceptuales referentes a la teoría del cine válidos para poder usar con más conocimientos cualquier obra cinematográfica en el aula.

Nov 2nd 2026
5-12 Weeks
Aboriginal Worldviews and Education (Coursera) Coursera
University of Toronto

Aboriginal Worldviews and Education (Coursera)

Intended for both Aboriginal and non-Aboriginal learners, this course will explore indigenous ways of knowing and how they can benefit all students. Topics include historical, social, and political issues in Aboriginal education; terminology; cultural, spiritual and philosophical themes in Aboriginal worldviews; and how Aboriginal worldviews can inform professional programs and practices, including but not limited to the field of education.

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
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
e-Learning Ecologies: Innovative Approaches to Teaching and Learning for the Digital Age (Coursera) Coursera
University of Illinois at Urbana-Champaign

e-Learning Ecologies: Innovative Approaches to Teaching and Learning for the Digital Age (Coursera)

For three decades and longer we have heard educators and technologists making a case for the transformative power of technology in learning. However, despite the rhetoric, in many ways and at most institutional sites, education is still relatively untouched by technology. Even when technologies are introduced, the changes sometimes seem insignificant and the results seem disappointing. If the print textbook is replaced by an e-book, do the social relations of knowledge and learning necessarily change at all or for the better?

Nov 2nd 2026
4 Weeks
ICT in Primary Education: Transforming children's learning across the curriculum (Coursera) Coursera
University of London

ICT in Primary Education: Transforming children's learning across the curriculum (Coursera)

Why and how are teachers integrating ICT (Information and Communication Technology) into primary education? In this course we analyse examples from schools in different parts of the world, and bring professional teachers, headteachers and policymakers together to share their best ideas and inspiring stories. The materials in the course are based on studies carried out for the UNESCO Institute of IT in Education, Moscow.

Nov 2nd 2026
5-12 Weeks
Literacy Teaching and Learning: Aims, Approaches and Pedagogies (Coursera) Coursera
University of Illinois at Urbana-Champaign

Literacy Teaching and Learning: Aims, Approaches and Pedagogies (Coursera)

This course opens with an exploration of the social context and aims of literacy teaching and learning. It goes on to describe a range of historical and contemporary approaches to literacy pedagogy, including didactic, authentic, functional, and critical approaches. The course takes has a 'Multiliteracies' perspective, which aims to expand the definition of literacy to encompass today's multimodal communications, and the diversity of literacies across different social and culltural contexts.

Nov 2nd 2026
4 Weeks