21 lines
614 B
Python
21 lines
614 B
Python
# TODO здесь писать код
|
|
# GPU_list = [3070, 2060, 3090, 3070, 3090]
|
|
def input_cards():
|
|
gpu_list = []
|
|
count_gpu = int(input('Кол-во видеокарт: '))
|
|
for i in range(1, count_gpu + 1):
|
|
gpu_list.append(int(input(f'{i}-Видеокарта: ')))
|
|
|
|
def by_cards():
|
|
new_gpu_list = []
|
|
max_model = max(gpu_list)
|
|
for value in gpu_list:
|
|
if value != max_model:
|
|
new_gpu_list.append(value)
|
|
|
|
input_cards()
|
|
by_cards()
|
|
|
|
print('\nСтарый список видеокарт:', GPU_list)
|
|
print('Новый список видеокарт:', new_GPU_list)
|