PYTHON
PYTHON
PYTHON
you to gracefully manage errors that might occur during the execution of
your code.
global_count = 0
def increment_global():
global global_count # Access the global variable
global_count += 1 # Modify the global variable
def print_global():
print("Global count:", global_count) # Access the global variable
# Local variable
def increment_local():
local_count = 0 # Local variable
local_count += 1
print("Local count:", local_count)
print(data[10:21])
sliced_data=data[10:21]
print(sliced_data)