
1 minute read
1. Conditions I
Objectives
In this session, students will learn about -
● What are conditions
■ If-else statement
■ If do block
Keywords
● Conditions: Tell a program to execute different actions depending on whether a certain criteria is true or false
WEBS at a Glance
Recall the concepts covered in the previous coding session
Play the video given in the panel to introduce the concepts to be covered in this session
Discuss Conditions Activity given in the panel
Conclude the session Assign the homework
● Instruct: Go to the Panel and open the Lab on Conditions I.
● Play the video given on the panel.
● Discuss the Quiz questions given on the Panel.
● Invite answers from as many students as possible.
● Conduct Frame Conditions given in the Panel:
■ Say: Let’s see a couple of scenarios and try to frame blockly conditions for the situations.
■ Instruct: Click on the Assignment section.
■ Instruct: Click on the Go to Practice button to attempt the activity.
■ Walk around in the classroom and observe the activity done by the students.
■ Instruct: Click on the Yes button to submit the activity.
Note
● If time permits, conduct the additional activity given on the panel.
● Conclude: Today, we learned about conditions, if-else statements, and if-do blocks.
● Ask the following probing questions:
■ What decisions do you come across in your day-to-day life?
Possible Responses: Deciding what to wear; What to eat; Where to go out with friends/ parents; Which subject to study on a particular day and so on.
■ Can you think of conditions in your day-to-day life that can be framed as “if <this> then I will <do this>?
Possible Responses: If it rains, I will wear dark coloured clothes; If the teacher is absent, I will do my pending H.W (or read a book); If it’s Mom’s birthday, I will make her a card; If my friend visits me, I will go out to play with him/her and so on.
● Assign the following project as homework:
■ Take user input and create a condition using the if do block.
Note
● The project is optional. Assign it if feasible.