Question 10: Variables – Revision

 

📝 Classwork: Understanding Basic Python Concepts

Instructions:

Answer the questions below based on what you’ve learned in the class activity. Write your answers in a Python file or directly in your exercise book.


Part A – Fill in the blanks

  1. The function used to show text or output on the screen in Python is __________.

  2. Anything written after the symbol # is treated as a __________ by Python.

  3. A variable is used to __________ data.

  4. True or False are examples of the __________ data type.

  5. A number with a decimal point is called a __________.


Part B – Write the Python code

Write Python code to:

  1. Create a variable called student_name and assign your name to it.

  2. Create a variable math_score and assign it your math score (as a number).

  3. Create a variable passed and assign it either True or False.


Part C – Identify the data types

Look at the values below and write what data type each one is:

ValueData Type
'banana'___________
2025___________
9.8___________
True___________

 

Write what you are looking for, and press enter to begin your search!