Control Flow
1. What is the difference between 10 / 3 and 10 //3?
2. What is the result of 10 ** 3?
3. Given (x = 1), what will be the value of after we run(x += 2)?
4. How can we round a number?
5. What is the result of float(1)?
6. What is the result of bool(“False”)?
7. What is the result of 10 == “10”?
8. What is the result of “bag” >“apple”?
9. What is the result of not(True orFalse)?
10. Under what circumstances does the expression 18<= age < 65 evaluate to True?
Primitive Types
1. What is a variable?
2. What are the primitive built-in types inPython?
3. When should we use “”” (tripe quotes) to definestrings?
4. Assuming (name = “John Smith”), what does name[1]return?
5. What about name[-2]?
6. What about name[1:-1]?
7. How to get the length of name?
8. What are the escape sequences in Python?
9. What is the result of f“{2+2}+{10%3}”?
10. What does name.strip() do?
11. How can we check to see if name contains“John”?
12. What are the 3 types of numbers inPython?