From the course: Complete Guide to Python for Data Engineering: From Beginner to Advanced
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Collections - Python Tutorial
From the course: Complete Guide to Python for Data Engineering: From Beginner to Advanced
Solution: Collections
(upbeat music) - [Instructor] Problem statement says we have to find out the smallest number from the list. This would be pretty straightforward. Reason being is there is a built-in method available in which if you pass the list, this will give you the smallest number out of it. The method name is min. So the min is a built-in function. And in that, if you pass your list, that is the numbers, this will automatically give you the smallest number. Let me just click on test my code, and you can see that we are getting the smallest number from the list. In the bottom, you can see that the number list is this, and out of that, the smallest number is five. So the way to find out the smallest number from the list is simplest way using the min function. See you into the next video.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.