In Python, data created inside the function cannot be used from the outside unless it is being returned from the function.
Variables in a function are isolated from the rest of the program. When the function ends, they are released from memory and cannot be recovered.
The following code will never work: