Programming 8 Week 3
Programming 8 Week 3
Programming I – Week 3
Activity Sheet Number 3
Activity No. 7
String, Integer or Float?
Instructions: For this activity, you need to classify if the given values of the following variables below are string, integer of float-
points. Write str for strings, int for integer, and float for floating-points.
Int 2. distance = 10
Int 9. new_active_cases = 1
Instructions: Complete the table given below. Write your own specific variable name and values for every statements. Make sure
that your given values will follow the given data type for each variable.
Variable Name
Data Type Value
my_mothers_name
1. Name of your mother string ‘Norcaima C. Abris’
my_grade_level
2. Your current grade level integer 8
my_adviser ‘Gerardo
3. Complete name of your adviser string
Laguador’
my_weight
4. Your weight (in kg) Floating-point 73.20
parent_number
5. Contact number of your parent string ‘09194359199’
number_of_my_sibling
6. Number of your siblings integer 1
7. Your general average in Science my_general_average_in_scince_during_grade_7
integer 96
during Grade 7
acceleration_due_to_gravity
8. Value of Acceleration due to gravity Floating-point 9.8
time_when_I_was_answering_this_activity
9. Time when you answer this activity string ‘8:54 pm’
10. Number of minutes you spent in number_of_minutes_answering
integer 15
answering this activity
Activity No. 9
Data Types and Variables (Part 1)
Assign values to the given variables below. Write and complete your codes in a python compiler.
whole_name =
my_age =
height _in_cm=
Activity No. 10
Data Types and Variables (Part 2)
This time, it must be clear to you the introductory concept and basics of data types and variables. For your next task, you will now
write your own code. Think and write 5 codes for each variable type – string, integer, and floating point. Make sure to follow the basic
syntax in writing your codes.
NOTE: Avoid using the codes on our previous discussion and activities. Create your own code.
String
1. favorite_bl_series = ‘Still 2gether’
2. favorite_color = ‘Black’
3. favorite_yaoi = ‘BJ Alex’
4. pet_peeve = ‘Being compared to other people’
5. dream_profession = ‘pharmaceutical scientist’
Integer
1. hours_of_sleep = 2
2. money_in_my_wallet = 1
3. number_of_students_in_8_wisdom = 48
4. number_of_members_in_my_family = 4
5. my_favorite_number = 14
Floating-Point
1. my_average_temperature_in_celsius = 36.5
2. liter_of_coke = 1.5
3. my_dogs_weight_in_kg = 1.15
4. my_shoe_size_in_cm = 25.8
5. one_ounce_in_grams = 28.3495