Write a Python program to get the largest number from a list.
IDE: Visual Studio Code ( VSC ). Present: go2collage.
Download hole Program / Project code, by clicking following link:
Programming Code:
# Basic Python Program
# Largest / Smallest number from a list
list3 = [10, 20, 30, 40, 50]
print("Original List is: ", list3)
print("Largest Number from List is: ", max(list3))
print("Smallest Number from List is: ", min(list3))
# By using min() and ma() method
Output:
0 Comments