Actually, I changed something in the seven boom and now its shorter in a little ( just realized I can do it and the code still looks good, but still long ):
def seven_boom_range(self, small, big): empty = [] if big > small: small, big = big, small if small > big: for i in range(1, small - big + 1): if "7" in str(i) or i % 7 == 0: empty.append("BOOM") else: empty.append(i) empty.insert(0, 0) return empty