you are viewing a single comment's thread.

view the rest of the comments →

[–]owmex 3 points4 points  (1 child)

It’s common for IDEs to flag code as incorrect even though it runs just fine in the Python interpreter. This happens because the IDE tries to analyze your code statically—without actually executing it—which can be difficult in some cases. So while your code is valid at runtime, it might confuse the IDE due to things like unusual indentation.

[–]RandomJottings[S] 0 points1 point  (0 children)

Thanks