Page 127 - 2403_Trackpad_V5.1_C6_Fb
P. 127
3. In a treasure hunt game, you want to display the number of treasures left on the screen. How
would you use a variable to track and update this information as the player collects treasures?
4. Jordan is designing a project where the sprite needs to draw different geometric shapes (e.g., a
square, triangle, or circle) on the screen. Which pen block should he use to make the sprite draw
a square?
5. Suppose you want to add sound effects or music to your Scratch project. Which tab would you
use to do so?
6. Your friend has done the given coding in Scratch to draw a triangle. But he has not succeeded in
it. He asked to rectify the error in the code. How will you do so?
Chapter 8: Introduction to Python
1. Anika is writing a program to store the name and age of a person. She creates a variable name
to store the person’s name and another variable age to store the person’s age. She wants to print
both values together in a single line. Write the Python code that Anika should use to store the values
“John” in the name variable and 25 in the age variable, then print both values in a single line.
2. Shruti has written her first Python program to display the message “Hello, World!” She wants to
save the program on her computer so that she can open and execute it later. Explain how Shruti
should save her Python program with the filename hello.py in a specific folder on her computer.
Assignments 125

