Post

PythonPython

A
Anusha V

Posted on 24th May 2024|11 views

0
votes

Python Minimum Integer

How can we find the minimum integer in python?

Answers
P
imran mohammad

Posted on 24th May 2024

To find the minimum or the smallest integer in the list, we can simply use the method called sort and then can print the first integer in the list the example program is 

list = [5, 15, 22, 3]

list.sort()

print("The Smallest element in the list:", *list[:1])

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos