Computational Thinking for K-12 Educators: Nested If Statements and Compound Conditionals (Coursera)

Computational Thinking for K-12 Educators: Nested If Statements and Compound Conditionals (Coursera)

How could you program a complex "choose your own adventure" game? How can your soccer game determine goals, balls out of bounds, and corner kicks? You'll learn to do both of these in this course! This class teaches the concepts of nested if/else statements and compound Boolean conditional expressions.

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 nested if/else statements and compound conditionals 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 prepare classroom resources to help your students to develop debugging skills. Additionally, you will create resources to help educate your students about the impacts of lack of equity in K-12 CS instruction.
Course 4 of 6 in the Computational Thinking & Block Programming in K-12 Education Specialization.

Syllabus

WEEK 1
Course Orientation
Nested If/Else Part 1
Explore conditional executing by learning about nested if-else statements. Use nested if-elses in examples where there are three or more options. Design your own conditional system, re-create Snap programs based on video solutions, and review some common debugging tips.

WEEK 2
Nested If/Else Part 2
Continue with nested if-else statements with our non-interactive programming puzzles to check your knowledge. Get prepared to run classroom discussions on some challenging if-else statements and explore a different, free, online programming system -- pencilcode.net

WEEK 3
Compound Conditionals Part 1
Learn how to create compound conditionals with and and or. Do an unplugged activity to see compound conditional apply in a soccer game. See how truth tables define the behavior of Boolean operators and and or and get the chance to fill one in. Create your own compound conditional programs using Snap, review others' work, and learn debugging tips.

WEEK 4
Compound Conditionals Part 2
Deepen your understanding of compound conditionals with some pretty challenging classroom discussion questions. Learn about the design behind the Scratch programming language and read and use starter code in Scratch to create a soccer game that announces goals and various out of bounds situations.

WEEK 5
Equity & Pedagogy
Explore the equity and pedagogical aspects of computer science. Learn about Grace Hopper, an iconic woman and pioneer of computing and learn about debugging tips. After practicing your debugging skills, you will learn the benefits and methods to introduce computer science to everyone. Finally, we'll introduce various communities and share advice that will be useful for computing education leaders.

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

Related Courses

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.

Sep 21st 2026
5-12 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.

Sep 21st 2026
4 Weeks
Foundations of Teaching for Learning: Developing Relationships (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Developing Relationships (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.

Sep 21st 2026
5-12 Weeks
Foundations of Teaching for Learning: Being a Professional (Coursera) Coursera
Commonwealth Education Trust

Foundations of Teaching for Learning: Being a Professional (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.

Sep 21st 2026
5-12 Weeks
Assessment for Learning (Coursera) Coursera
University of Illinois at Urbana-Champaign

Assessment for Learning (Coursera)

For several decades now, assessment has become an increasingly pressing educational priority. Teacher and school accountability systems have come to be based on analysis of large-scale, standardized summative assessments. As a consequence, assessment now dominates most conversations about reform, particularly as a measure of teacher and school accountability for learner performance. This course is an overview of current debates about testing, and analyses the strengths and weaknesses of a variety of approaches to assessment.

Sep 21st 2026
4 Weeks
Cursos en línea: modelo para armar (Coursera) Coursera
Universidad Nacional Autónoma de México

Cursos en línea: modelo para armar (Coursera)

¿Quieres crear un curso en línea? Estás en el lugar correcto. En alrededor de 20 horas podrás estructurar un curso de acompañamiento completo. Sabrás cómo diseñar sesiones que te permitan interactuar dinámicamente con tus estudiantes y a ellos trabajar en subgrupos en actividades que los mantengan motivados y que promuevan aprendizajes sólidos. ¡Únete a este grupo creciente de maestros y otros interesados en la educación para crear tu curso de acompañamiento en línea!

Sep 21st 2026
4 Weeks
What future for education? (Coursera) Coursera
University of London,UCL Institute of Education

What future for education? (Coursera)

Through this course you will start to critically examine your own ideas about education, teaching and learning. The critique will be developed through engagement with theories and ideas developed through educational research. You will be encouraged to use these ideas to challenge or support your own ideas about education. Each week we will focus on one key question, using video lectures, key readings and challenges to explore some commonplace notions about education.

Sep 14th 2026
5-12 Weeks
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.

Sep 14th 2026
5-12 Weeks
Artificial Intelligence (AI) Education for Teachers (Coursera) Coursera
Macquarie University

Artificial Intelligence (AI) Education for Teachers (Coursera)

Today’s learners need to know what artificial intelligence (AI) is, how it works, how to use it in their everyday lives, and how it could potentially be used in their future. Using AI requires skills and values which extend far beyond simply having knowledge about coding and technology. This course is designed by teachers, for teachers, and will bridge the gap between commonly held beliefs about AI, and what it really is. AI can be embedded into all areas of the school curriculum and this course will show you how. This course will appeal to teachers who want to increase their general understanding of AI, including why it is important for learners; and/or to those who want to embed AI into their teaching practice and their students’ learning.

Sep 21st 2026
5-12 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.

Sep 21st 2026
4 Weeks
Problem Solving, Python Programming, and Video Games (Coursera) Coursera
University of Alberta

Problem Solving, Python Programming, and Video Games (Coursera)

This course is an introduction to computer science and programming in Python. Important computer science concepts such as problem solving (computational thinking), problem decomposition, algorithms, abstraction, and software quality are emphasized throughout. The Python programming language and video games are used to demonstrate computer science concepts in a concrete and fun manner. However, a learner can take the knowledge and skills from this course and apply them to non-game problems, other programming languages, and other computer science courses.

Sep 21st 2026
5-12 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.

Sep 21st 2026
5-12 Weeks