# You can do something like this n = int(input()) numbers = [] for i in range(n): numbers.append(int(input())) print(f'Max number: {max(numbers)}') print(f'Min number: {min(numbers)}') # [Naveen Kumar] [so/q/63335917] [cc by-sa 3.0] $Follow @igor_chubin cheat.sh