-2

I'm having a problem printing out a specific ASCII art that I saw and was wondering if anyone could help me. The program does not want to run, but I don't know where the error in my code is.

Input

print("(\\                   (\/)") 
print("( '')     (\_/)      (.. )   //)")   
print('O(")(") (\\'.'/)'  '(")(")O (" )')
print('         (")_(")           ()()o')

The expected output should be this:

(\\               (\/)
( '')    (\_/)   (.. )   //)
O(")(") (\'.'/) (")(")O (" )
        (")_(")        ()()o 

Would really appreciate your help.

Ch3steR
  • 20,090
  • 4
  • 28
  • 58
Nathan Kindo
  • 3
  • 1
  • 8
  • 2
    Does not want to run isn't helpful. The traceback show exactly what the problem is. On line 3 you have both single and double quotes that result in SyntaxError. Use tripple quotes on line 3. And on line 1 \\ will result in single \ when printed. Use \\\\ instead, or use raw string. – buran Feb 25 '20 at 07:28
  • Thank you, I found my problem. Appreciate it. – Nathan Kindo Feb 25 '20 at 08:21

1 Answers1

0

Try this:

print('''(\\                   (\/)''') 
print('''( '')     (\_/)      (.. )   //)''')   
print('''O(")(") (\\'.'/)'  '(")(")O (" )''')
print('''         (")_(")           ()()o''')
F.NiX
  • 1,457
  • 3
  • 12
  • 20