Generally, it is a good idea to share
- the whole code of yours, not just a single line as the problem could originate from before
- what the exact error message is
Without knowing what exactly is going on, I'd say that you need to indent the print as it belongs to the if statement's body.
Another problem could be building_1 is not being a string or could be of some other type that's not comparable to a string.
Nothing else could be told without knowing more.