Step 1. Turn on the 2-step Verification
Open your Google Account and click the Security tab. Activate 2-step verification if it's not yet enabled.
After 2-step verification is enabled click the App Passwords:
Step 2. Generate the App Password
Select Other in the dropdown.
Then specify the app name. It can be anything
Now you can copy the app password