Page 32 - Touchcode_C8_Flipbook
P. 32

Step 12: Change the value of ‘num1’ to 2 in ‘set number to 0’ block and ‘num2’ to 1. Click
                             on ‘Start the simulator’ to view the output.

                   Step 13: Change the value of ‘num1’ to 2 in ‘set number to 0’ block and ‘num2’ to 4. Click
                             on ‘Start the simulator’ to view the output.

                   Step 14: Change the value of ‘num1’ to 2 in ‘set number to 0’ block and ‘num2’ to 2. Click
                             on ‘Start the simulator’ to view the output.



























                      Well done, you have learnt to compare two numbers!


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




































                   30     Touchcode-VIII
   27   28   29   30   31   32   33   34   35   36   37