Generating selfie training data

Why are we using the loop
for face in faces[-1:]:

According to sir we need to extract the largest face in the ascending ordered list of faces so we are using this with [-1:] but we can also directly select the face as
face=faces[-1]
What is the logic for using the loop here?

Hey @devanshmarwaha27 yes you are right, that is also the possible way out.

HOpe this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.