Problem:
I am trying to print some string in my python program but for some reason, it’s not working. The compiler says python syntaxerror: EOL while scanning string literal that is totally beyond my understandings. For obvious reason, I am avoiding my original code and attaching a simple dummy code. Please check it and let me know about the problem.
def printStr():
mystr = "This is
a test string"
print(mystr)
printStr()
Here is the dummy code snippet. Please pull me up from the problem. Thanks to all.