ReactNativeBlobUtilTmp Db71krfin7al5kficrd22c
ReactNativeBlobUtilTmp Db71krfin7al5kficrd22c
1-BLOCK IT OUT:
MOVING FROM BLOCKS TO TEXT
GRADE 6
Topic: Datatypes
CHALLENGING/CRITICAL THINKING
integer
Whole number consists of + or – sign without decimal point
Example : a=10, b=-10
float
Floating point numbers which contain decimal point
Example : a=10.5,b=10.0
string
Sequence of characters used to store and represent text-based information
Example : name=“rani”, username=‘kamini’
Explore and
Evaluate
Task: write code, recognize these values, and see how Python handles them.
# Example 1: Integer
height = 120
print(height)
# Example 2: Float
temperature = 36.6
print(temperature)
# Example 3: String
name = “Kavin" QUESTION:
print(name) Change the value of height to float value in example 1
Change temperature to a new integer value in example 2
Change name to another string in example 3
AFL
2. If the value of temperature is changed to an integer, it will be printed with decimal places.
3. Changing the value of name from "Kavin" to "Sophia" will print "Sophia".
ANSWERS:
TRUE,FALSE,TRUE
Activity 1: Activity 2: