def bad_code(): for i in range(10): print(i) if i == 5: print("Halfway there!") for j in range(3): print(j) return