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