Computer Science, asked by Anonymous, 4 months ago

Write a program in Python to create a
list containing 10 number. Then print
the sum of smallest and biggest
element of the list.​

Answers

Answered by pjgaikar06
0

Answer:

# Python program to find largest  

# number in a list  

 

# list of numbers  

list1 = [10, 20, 4, 45, 99,23,2,42,233,43]  

 

# sorting the list  

list1.sort()  

 

# printing the last element  

print("Largest element is:", list1[-1])

Similar questions