Python Forum

Full Version: [split] SyntaxError when trying to execute code on Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would be happy to help me.
when I running this code :
print("""
 _    _
| |  | |
| |__| | __ _ _ __   __ _ _ __ ___   __ _ _ __ 
|  __  |/ _' | '_ \ / _' | '_ ' _ \ / _' | '_ \ 
| |  | | (_| | | | | (_| | | | | | | (_| | | | |
|_|  |_|\__,_|_| |_|\__, |_| |_| |_|\__,_|_| |_|
                     __/ |
                    |___/
""")
I accepted this error:
^
Error:
SyntaxError: unexpected character after line continuation character
your code works for me.
post the full code you have. Sometimes the error may be on the previous line
the full code:
import random
print("""
 _    _
| |  | |
| |__| | __ _ _ __   __ _ _ __ ___   __ _ _ __ 
|  __  |/ _' | '_ \ / _' | '_ ' _ \ / _' | '_ \ 
| |  | | (_| | | | | (_| | | | | | | (_| | | | |
|_|  |_|\__,_|_| |_|\__, |_| |_| |_|\__,_|_| |_|
                     __/ |
                    |___/
""")
random.randint(5, 10)