Welcome to the Treehouse Community
Looking to learn something new?
Eduardo DiazCourses Plus Student 6,048 Points
couldnt evaluate your script
im a little confused as to wether should i separate the elements in the tuple wth spaces or not, and i dont undestand why cant it evaluate script?
TILES = ('-', ' ', '-', ' ', '-', '||', '_', '|', '_', '|', '_', '|', '||', '&', ' ', '_', ' ', '||', ' ', ' ', ' ', '^', ' ', '||' ) for tile in TILES: if title is not '||': print(title, end=' ') else: print('\n')
Seems like your question is still not answered, as it pops up in list of unanswered questions.
Is checks if the both variable are pointing to same object whereas == checks the value.
So may be this is what you need.
for tile in TILES: if tile != '||': print(tile, end=' ') else: print('\n')
If this is not your answer and you already got the answer, post it and accept is by upvoting.