I have a yahoo account that basically is a throw away account. However, there are time when I have to log into it. I never remember the password so i basically reset any time i use log in. I get the code sent to my gmail account. You have to enter the code to get access and you need the code to get access to yahoo email.
https://www.reddit.com/r/AskNetsec/comments/e4nqok/i_keep_getting_your_yahoo_verification_code_is/