Edit (since this forum doesn't support deleting a thread): My mistake. After using the (shift+)TAB keys, the script runs. Guess there were useless TAB characters.
-----------------
Hello,
Is there a way to add a multi-line comment block that keeps Python happy?
Thank you.
-----------------
Hello,
Is there a way to add a multi-line comment block that keeps Python happy?
import glob for item in glob.glob("*.txt"): print(f"**************** Handling {item}") name = True if name: print("True1") else: print("False1") #=========== blah """ IndentationError: unindent does not match any outer indentation level some comment """ if name: print("True2") else: print("False2")Note: Unlike displayed above, in the source code, the block is at the same level as the two "if name" lines.
Thank you.