Yahoo accounts needs two step verification to verify the person that is trying to access the email account. For adding your email account in the MS Outlook you need an application password. This application password is commonly known as App password. This App password is different password for your regular email account password.
Read more here:- https://www.datarecovo.com/yahoo-mail-n ... h-outlook/