Been going back and forth with ChatGPT about this Python Function . How VSCode is returning an error even after AI is claims no error. After several back and forths, it told me to restart VSCode. The code worked yo. AI is your PA.