Page 21 - Touchcode_C8_Flipbook
P. 21
You can view the code of the above program in ‘Python’ by selecting ‘Python’ as an Editor.
Critical Thinking
Higher Order Thinking Skills (HOTS)
Create a program that assigns total marks of a student to variable and displays grade by using
the logic given below:
Total marks > 70, then display grade A
Total marks >49 and Total marks <=70, then display grade B
Total marks <=49, then display grade C
Teacher’s Corner
1. Discuss the concept of the logical operator with students.
2. Ask students to create a program in MakeCode Arcade which assigns a number to a variable. Then checks
if the number is divisible by 3 or 5 or by both 3 and 5.
Conditionals in Details 19

