Nov-20-2019, 03:13 PM
(This post was last modified: Nov-20-2019, 03:30 PM by newbieAuggie2019.)
(Nov-20-2019, 03:04 PM)buran Wrote: I am not able to reproduce this error. The last snippets works just fine
Hi!
I think you just copied and pasted the last piece of code, and run it. I have just made that and it works just fine, as you said. The problem arises when you run the first program and then attach the output to that program as comments. Then it seems that the space in r' **' in the comments produces the error.
I have just tested in Cmder and with Cmder it works fine. Not with IDLE, and when I tried to copy and paste the output to the program in PyScripter, it only copies the comments like this:
##Output: ## ##This is string1 'Agent Cheesecake was a double agent.' with r'stopping at the apostrophe, just before the space, that python takes as a null byte.
Thank you and all the best,
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs