Reputation:
okay so I was making a game in python to test what I learned but I have been doing the same thing but then I suddenly get an error of "unindent does not match any outer indentation level" and I can't understand why because it's almost the exact same as the others.
But the thing is i wrote it all under a break statement (at the bottom).
print("88..__ | |`-!._ | `.| |_______________||.'| _!/000\0 | _/0\00/")
import random
import time
import sys
import os
import sys
import math
yes_no = ["yes", "no"]
response = ""
while response not in yes_no:
response = input(":")
if response == "security cameras":
print("the 00/00 are cracks in the camera\n")
time.sleep(3)
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
time.sleep(2)
print(" ")
print("cam 2")
print("--------------------------|")
print(" _________ ,%%&%, |")
print(" /\ _ \%&&%%&% | ")
print("/ \___/^\___\%&%%&& |")
print(" | | [] [] |%\Y&%' |")
print("| | .-. | || |")
print("~~@._|@@_|||_@@|~|| |")
print("--------------------------|")
print(" ")
time.sleep(5)
print(" ")
print("cam 4")
print("-----------------------------------------------|")
print(" 00/0 |")
print("\00 00\00 _||____ |")
print("0\00/\ /\ 000/00 /\\\/\\000 |")
print("/00\0/\\/\\ _00/000 /__\\\/0000 |")
print("/0\00\\/\\ 000/000 |__|_|_|__| |")
print("|| 0\00 || o0/0000 | |/|\| /| |")
print("~~~~~00\0~~~~~~~0/0~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-|")
print(" 0\0_ _ 00/00 |")
print(" _0-0\0000/0_ |")
print(" _-' __00\_0/000-_ |")
print("_-' ______0\/_0000__ '-_ |")
print("|___|00000/0|____| |")
print("|___0000_/0|||___| |")
print("|__00/00\0|______| |")
print("|__000/0||0\00__| |")
print("|000/0||||0_\0___| |")
print("|_0/0|||||0\0____| |")
print("-----------------------------------------------|")
time.sleep(5)
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print("cam 6")
print("______________________________________________")
print("|.'', ,''.|")
print("|.'.'', ,''.'.|")
print("|.'.'.'', ,''.'.'.|")
print("|.'.'.'.'', ,''.'.'.'.|")
print("|.'.'.'.'.| |.'.'.'.'.|")
print("|.'.'.'.'.|===; ;===|.'.'.'.'.|")
print("|.'.'.'.'.|:::|', ,'|:::|.'.'.'.'.|")
print("|.'.'.'.'.|---|'.|, _______ ,|.'|---|.'.'.'.'.|")
print("|.'.'.'.'.|:::|'.|'|???????|'|.'|:::|.'.'.'.'.|")
print("|,',',',',|---|',|'|???????|'|,'|---|,',',',',|")
print("|.'.'.'.'.|:::|'.|'|???????|'|.'|:::|.'.'.'.'.|")
print("|.'.'.'.'.|---|',' /%%%\ |--|---|.'.'.'.'.| ")
print("|.'.'.'.'.|===:' /%%%%%\ ':===|.'.'.'.'.|")
print("|.'.'.'.'.|%%%%%%%%%%%%%%%%%%%%%%%%%|.'.'.'.'.|")
print("|.'.'.'.',' /%%%%%%%%%\ ','.'.'.'.|")
print("|.'.'.',' /%%%%%%%%%%%\ ','.'.'.|")
print("|.'.',' /%%%%%%%%%%%%%\ ','.'.|")
print("|.',' /%%%%%%%%%%%%%%%\ ','.|")
print("|;____________/%%%%%%%%%%%%%%%%%\____________;|")
time.sleep(5)
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print("88888888888888888888888888888888888888888888888888888888888888888888888")
print("88.._| | `-. | `. -_-_ _-_ _- _- -_ - .'| |/|00 | _..88")
print("88 `-.._ | |`! |`. -_ -__ -_ _- _-_- .' |.;'/00|00 _.!-'| 88")
print(" 88..__ | |`-!._ | `.| |_______________||.'| _!/000\0 | _/0\00/ ")
print("88..__ | |`-!._ | `.| |_______________||."'| _!/000\0 | _/0\00/")
print("88 | |``--..|_ | `;!|l|MMoMMMMoMMM|1|.'j | /..!-'|00/0|0000000/")
print("88 | | | |`-,!_|_|MMMMP'YMMMM|_||.!-;' \0000000/0000000/")
print("88___|______|____!.,.!,.!,!|d|MMMo * loMM|p|,!,.!.,.!\0000000|000000/")
print("88 | | | | | |_|MMMMb,dMMMM|_|| | | \0000000/00000/")
print("88 | | |..!-;'i|r|MPYMoMMMMoM|r| |`-..| |\00000/00000/")
print("88 | _!.-j' | _!,"|_|M)(MMMMoMMM|_||!._| `i-!/000000-000/")
print("88 _!.-'| | _."| !;|1|MbdMMoMMMMM|l|`.| `-._| \000/0000000/")
print("88..-i' | _.''| !-| !|_|MMMoMMMMoMM|_|.|`-. | ``./00000000/")
print("88 | |.| |.| !| |u|MoMMMMoMMMM|n||`. |`! \00000000\")
print("88 | _.-' | .' |.' |/|_|MMMMoMMMMoM|_|! |`! `,.|/00000000\")
print("88 _!"'| !.'| .'| .'|[@]MMMMMMMMMMM[@] \| `. | /0000000000\")
print("88-' | .' |.| |/| / \|`. |`!/00000000000\")
print("88 |_.'| .' | .' |/ \ \ | /0000000000000\")
print("88 .' | .' |/| / \ |`!/00000000000000/")
print("88 _.' !'| .' | / \|/000000000000000/")
print("88888888888888888888888888888888888888888888888/")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
break
if response == "open internet explorer":
i()
know()
that()
me()
i()
know()
that()
me()
i()
know()
web()
that()
me()
i()
know()
that()
me()
i()
know()
that()
me()
i()
know()
that()
me()
did()
this
the()
hard()
way()
but()
it()
really()
sucks()
Its()
too()
much()
effort()
pls()
help()
me()
my()
hand()
hurt()
break
elif response == "unneeded":
print("unneeded\n")
else:
print("I didn't understand that.\n")
Upvotes: 0
Views: 74
Reputation: 878
One problem I noticed is, at this line
print("88..__ | |`-!._ | `.| |_______________||."'| _!/000\0 | _/0\00/")`,
you have added one double quotes in the middle. if that is necessary you should escape it like this,
print("88..__ | |`-!._ | `.| |_______________||.\"'| _!/000\0 | _/0\00/")`,
Also I could see some unusual indentation for 'if' statements,
if response == "open internet explorer":
i()
know()
....
break
elif response == "unneeded":
print("unneeded\n")
This should be,
if response == "open internet explorer":
i()
know()
....
break
elif response == "unneeded":
print("unneeded\n")
Upvotes: 2