Variables and Data Types
✕Variable
Question 1 of 2
- Create a variable to store your name and print it
- Create a variable to store your age and print it
- Create a constant to store the value of pi (3.14159) and print it
- Create a variable to store a boolean value (is_nepali) and print it
Data Types and Type Conversion
Question 2 of 2
- Assign num_int as
15. Display its datatype. Convert it to float and string, display again - Assign num_str as
"25". Add10to it after data type conversion and print the result - Assign float_num as
10.5. Convert it to string, add'10'and print the result - Assign is_active as
True. Convert it to string and print the result and its data type - Assign num_1 as
'5'and num_2 as'2.5'. Convert both to float and print their sum
- Assign num_int as
