Page 43 - Touchcode_C6_Flipbook
P. 43
D. Match the following:
1. Modulus a. –=
2. Add AND assignment operator b. *-
3. Subtract AND assignment operator c. +=
4. Multiply AND assignment operator d. %
E. Answer the following questions:
1. What is the use of Subtract AND assignment operator?
..............................................................................................................................................................
..............................................................................................................................................................
2. Write the rules to name a variable.
..............................................................................................................................................................
..............................................................................................................................................................
3. Write the names of the data types that are available in Python.
..............................................................................................................................................................
..............................................................................................................................................................
Experiential Learning
Applied Project
To perform modulus operation on two variables in MakeCode Arcade
To perform the task, follow these steps:
Step 1: Visit the link: https://arcade.makecode.com, click on 'New Project', and write the name
of project 'Modulus Operation'. Click on ''Create'.
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…'.
Variables Using Block Coding 41

