Simple task practice and logical expressions
Answers are for parents and teachers.
1
If a = 8, b = 12, what is the value of a < b and b < 10?
False
2
Write an expression that checks that an age is greater than 12 and not equal to 18: what is the result for y = 15?
y > 12 and y != 18 – True
3
The user types a number. Write a program that prints True if the number is even and False otherwise.
n = int(input()) ⏎ print(n % 2 == 0)
4
For a circle with radius 6 and PI = 3.14, find the circumference 2 * PI * r.
37.68