num_list = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] guess_num = int(input()) for i in range(0, len(num_list) - 1): if guess_num == num_list[i]: for j in range(0, i): print(num_list[j], end='\n') break else: for i in num_list: print(i,end='\n')
num_list = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] guess_num = int(input()) for i in range(0, len(num_list) - 1): if guess_num == num_list[i]: for j in range(0, i): print(num_list[j], end='\n') break else: for i in num_list: print(i,end='\n')