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
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
Math,
2 months ago
Math,
2 months ago
Math,
2 months ago
Science,
4 months ago
History,
4 months ago
Social Sciences,
9 months ago
World Languages,
9 months ago