Private: Code with Blockly
About Lesson

Let us generate a function that returns the value of sin for 3 different values of angle.
Step 1: Use this block to create a function named ‘value of sin’. And add three variables x,y and z.

Step 2: now add 3 blocks each of
⦁ Set variable to
⦁ Sin block from the math section
⦁ Print command

Step 4: put the variable blocks for x, y and z as shown

Step 5: use the following block from the ‘function’ section and attach it to a print statement

Step 6: use this block to enter the values of angles.

Congratulations! Now you have almost finished this course. Next up we will learn about flowcharts. But before that, keep experimenting with these blocs. Until then, keep learning.

error:
Fill in the form for S’O’A Fablab Orientation 2021.
Open chat
Hello! Welcome to Activities » Karkhana!