Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_name = # Oh dear, this is a SyntaxError!
- my_year = # Same here! And these variables are never used!
- crawl = [
- "Glasshouse",
- "Lowther",
- "Yates's",
- "Parish",
- "Society",
- "Salvation"
- ] # bars would be a better name but hey ho, it lets you be all poetic below
- for bar in crawl:
- # only two spaces indent! Another SyntaxError!
- if visited(bar): # visited is undefined and you'll get a NameError
- print(bar + " [X]") # use format strings, also the block if is wasteful
- else: # if you're only changing the one character
- print(bar + " [ ]")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement