# Game Over - Version 2 # Demonstrates the use of quotes in string print("Program 'Game Over' 2.0") print("Same", "message", "as before") print("Just", "a bit", "bigger") print("Here", end=" ") print("it is...") print( r""" _____ ___ ___ ___ _____ / ___| / | / |/ | | ___| | | / /| | / /| /| | | |___ | | _ / ___ | / / |__/ | | | ___| | |_| | / / | | / / | | | |___ \_____/ /_/ |_| /_/ |_| |_____| _____ _ _ _____ _____ / _ \ | | / / | ___| | _ \ | | | | | | / / | |___ | |_| | | | | | | | / / | ___| | _ / | |_| | | |/ / | |___ | | \ \ \_____/ |___/ |_____| |_| \_\ """ ) input("\n\Press the enter key to exit.")Look at
r
""" raw string added in your print function.This fix your escape character problem with output.
Output:Program 'Game Over' 2.0
Same message as before
Just a bit bigger
Here it is...
_____ ___ ___ ___ _____
/ ___| / | / |/ | | ___|
| | / /| | / /| /| | | |___
| | _ / ___ | / / |__/ | | | ___|
| |_| | / / | | / / | | | |___
\_____/ /_/ |_| /_/ |_| |_____|
_____ _ _ _____ _____
/ _ \ | | / / | ___| | _ \
| | | | | | / / | |___ | |_| |
| | | | | | / / | ___| | _ /
| |_| | | |/ / | |___ | | \ \
\_____/ |___/ |_____| |_| \_\