Page 43 - Touchcode_C7_Flipbook
P. 43

Experiential Learning
                                                      Coding Task          03


                                             Calling a function to print statements

                  To perform the task, follow these steps:

                  Step 1:  Open MakeCode Arcade, create a new project ‘Function to print parameter’, and

                            click on ‘Create’.
                  Step 2:  Click on ‘Advanced’, select ‘Functions’, and click on the ‘Make a Function...’ add

                            parameter in function by clicking on ‘Text’, write ‘str’ in place of ‘Text’. Click on
                            ‘Done’.

















                  Step 3:  Drag the splash block to the workspace and drop it onto the function block.



















                  Step 4:  Drag the ‘Str’ from function and place it in the ‘splash’ block.





















                                                                                           Fun with Functions    41
   38   39   40   41   42   43   44   45   46   47   48