#10
Each scratch command is a function that the program assigns to you, and we can also learn how to create functions ourselves.
Now, if I want the object to ask me my name, and when I tell it, it welcomes me on its own. This method has one input but more than one output, meaning that it is not fixed because it can call me by any name. To solve it, we follow the following:
Because we want a question, we will choose ask from Sensing and write what's your name. Then the object receives the answer, which is my name.
Then we store the answer in say, which we will fetch from Looks.
In order to be able to combine the name with the word hallo, we choose join from operators so that it appears with us in this image
Comments
Post a Comment