diff --git a/Module16/01_videocards/main.py b/Module16/01_videocards/main.py index da21048..572c3b3 100644 --- a/Module16/01_videocards/main.py +++ b/Module16/01_videocards/main.py @@ -1,3 +1,18 @@ # TODO здесь писать код +# GPU_list = [3070, 2060, 3090, 3070, 3090] +GPU_list = [] +new_GPU_list = [] +count_gpu = int(input('Кол-во видеокарт: ')) +for i in range(1, count_gpu + 1): + GPU_list.append(int(input(f'{i}-Видеокарта: '))) + +max_model = max(GPU_list) + +for value in GPU_list: + if value != max_model: + new_GPU_list.append(value) + +print('\nСтарый список видеокарт:', GPU_list) +print('Новый список видеокарт:', new_GPU_list)