Question : W3Schools Var-Op-B 24

10 Conceptual (No-Code needed) Questions


1. What is a variable and why do we use it in Python?
2. List the four main data types you learned and give one example of each.
3. What is the difference between float division ( / ) and floor division ( // )?
4. If a student writes this variable: 2name = “John”, explain why it is incorrect.
5. What does the modulus operator (%) do, and when is it useful?
6. Why can’t you use Python keywords (like for, class, while) as variable names?
7. What will Python return when comparing two numbers using the == operator?
8. Explain what it means that Python is “case sensitive.” Give an example.
9. What is the purpose of a comment in Python, and how do you write one?
10. name = “Ire” and age = 11

When printing them together like this → print(name, ‘is’, age)
Why do you need commas inside the print statement?

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