Help guys | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help guys

Напишите программу, которая рассчитает и выведет сумму максимального и минимального значений списка. numbers = [14,5,6,8,17,28] # место для вашего кода index= numbers.insert(index,"x") print (numbers)

11th May 2021, 8:31 AM
Rus
Rus - avatar
1 Answer
+ 1
Write a program that calculates and prints the sum of the maximum and minimum values in a list. numbers = [14,5,6,8,17,28] # place for your code index = numbers.insert (index, "x") print (numbers) The code is totally irrelevant to the question they asked. What are you trying to do?? It's a direct one..!! Just do, print(min(numbers)+max(numbers)) #42
11th May 2021, 8:42 AM
sarada lakshmi
sarada lakshmi - avatar