Page 16 - Touchcode_C8_Flipbook
P. 16

Step 11: Change the value of number to 5 in ‘set number to 0’ block. Click on ‘Start the
                             simulator’ to view the output.






























                       Well done, you have learned to check if the number is Even or Odd!








                   You can view the code of the above program in ‘Python’ by selecting ‘Python’ as an Editor.























                        At a Glance

                        Logical operators are the fundamental  blocks which  are used  to implement a decision-
                        making capability in your code.
                        The relational operator checks the value of the two operands.
                        Parentheses are used to group the operands with their correct operator.





                   14     Touchcode-VIII
   11   12   13   14   15   16   17   18   19   20   21