main loop ‘builtin_function_or_method’ object is not iterable

Direct Answer In the code here: change sourceCode.split to sourceCode.split(). If you want to know more about this error, read below: When debugging, you’d better remove the try…except block, especially an “expect Exception” block, which is so generic that you will get lost about what is going wrong. When removed the try…except block and run these code again, … Read more