Python's Error-Msg genie (Jeannie) is cute and fickle... She sometimes teases me by not telling me what the VALUE of the "int" is ( "That's for me to know, and for you to find out!" ) as in:
TypeError: can only concatenate str (not "int") to str Other times, she (Jeannie) gives me a helpful comment: ABCD (above and beyond... her job desc.) if (x=0): ^^^ SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='? Maybe you'd share other EXAMPLES of her charming, teasing ways??? is there a Tool that can scan my code and tell me such (wink,wink) type suggestions???? ----------- [Maybe you'd like to rewrite this line as ....... ?] [Might i interest you in the coding-style wherein ...... ?] etc? https://stackoverflow.com/questions/26000198/what-does-colon-equal-in-python-mean There is new syntax := that assigns values to variables as part of a larger expression. It is affectionately known as “the walrus operator” due to its resemblance to the eyes and tusks of a walrus. -- https://mail.python.org/mailman/listinfo/python-list