Task 3: Global and Local Variables Create a global variable…
Task 3: Global and Local Variables Create a global variable named global_count and initialize it to 0. Define a function named increment_count that increments global_count by 1. Call increment_count twice from outside the function. Print the value of global_count.
Read DetailsTask 2: Data Type Conversion Create a variable named price…
Task 2: Data Type Conversion Create a variable named price and assign a value with decimals (e.g., 19.99) to it. Convert price to an integer and store it in a new variable named integer price. Print both price and integer price.
Read Details