Question 4 - Numeric Operations:
Create two variables, num1 and num2, with numeric values. Write Python code to perform the following operations and print the results:
```
- Addition (num1 + num2)
- Subtraction (num1 - num2)
- Multiplication (num1 * num2)
- Division (num1 / num2)
- Integer Division (num1 // num2)
- Modulus (num1 8 num2)
- Exponentiation (num1 ** num2)
```
Question 5 - Scope and Global Variables:
Write a Python program with the following structure:
1. Define a global variable global_var with an initial value.
2. Create a function that attempts to modify global_var. Explain whether the modification is successful.
3. Inside the function, declare a local variable with the same name as global_var. Explain what happens when you try to print both the local and global variables inside the function.
Question 6 - Boolean Operations:
Declare two boolean variables, is_raining and is_sunny. Write Python code that prints whether it's a good day based on the values of these variables.
Question 7 - Complex Type Conversion:
Given a string "123.45", write Python code to convert it to an integer, then to a float, and finally back to a string. Print each intermediate result and the final string.