Function Is Not Working As Expected Depending On Location <solved>

Please format all the code so that we can easily see what you have written.
See About the Python Help category

2 Likes