Page 82 - PortGPT_V2.1_C6_Flipbook
P. 82

3.  Write the names of the data types that are available in Python.
                          ..............................................................................................................................................................

                          ..............................................................................................................................................................


                         Applied Project                                                             Experiential Learning


                            To perform modulus operation on two variables in makecode arcade

                   To perform the task, follow these steps:

                   Step 1:     Open the Makecode window.

                   Step 2:     Click on 'Variables', select 'Make a variable', write the name of the variable as 'a', then
                             click on 'OK'. Variable 'a' will appear in 'Make a Variable…'.

                   Step 3:     Select the 'Change a by 1' block, Block will appear on workspace. Click on the value a,
                             and change the value to '10'.

                   Step 4:   Drag and drop 'change a by 10' block to 'on start' block.

                   Step 5:     Click on 'Variables', select 'Make a variable', write the name of the variable as 'b', then
                             click on 'OK'. Variable 'b' will appear in 'Make a Variable…'.


                   Step 6:     Select the 'Change b by 1' block, It will appears on workspace, click on the value if 'b',
                             and change the value to 3. Drop the 'change b by 3' block to 'on start' block below
                             'change a by 10' block.




















                   Step 7:     Click on 'variables', select 'Make a variable', write the name of the variable as 'c', the

                             click on 'ok', variable 'c' will appear in 'make a variable'. Select 'set c to o' black and drop
                             it to 'on start' block below the 'change b by3' block.











                  80    Premium Edition-VI
   77   78   79   80   81   82   83   84   85   86   87