Data types and a practical lesson
Answers are for parents and teachers.
1
Write the types of these values: 0, "0", 0.0, False.
int, str, float, bool.
2
If a circle has radius 3 and PI = 3.14 is used, what is its area PI * r * r?
28.26
3
Write a program that asks the user for two whole numbers and prints their sum.
a = int(input()) ⏎ b = int(input()) ⏎ print(a + b)
4
Why is the result of "3" + "4" not 7?
They are strings, so they join into "34" and are not added.