pycharm
file:
s = ‘’‘…multiline…’‘’
print(s)
result:
…multiline…
console:
s = ‘’‘…multiline…’‘’
print(s)
multiline…
pycharm
file:
s = ‘’‘…multiline…’‘’
print(s)
result:
…multiline…
console:
s = ‘’‘…multiline…’‘’
print(s)
multiline…
This is a long-standing bug with the PyCharm console. https://youtrack.jetbrains.com/issue/PY-30598/3-or-more-dots-at-beginning-of-print-does-not-work
It is to do with the Python Interpreter’s REPL using … as an indication of an incomplete compound statement.
If you change the three dots to some other character, eg dash/hyphen; or surround the dots/line with spaces; consistency will reign!