Step 1: Login to your G-mail account.
Step 2: Click on google account and then click on manage your google account.
Step 3: Click on the Security option on the left side.
Step 4: Click on 2-step verification.
Click to get started button.
Step 5: Login again with Gmail password and verification code.
Step 6: Verify the mobile number and click on Next button.
Step 7: Enter the verification code and click on the Next button.
Step 8: Click Turn On button.
Click on 2-step verification and go to G-mail security screen
Step 9: Follow the below steps to create App password.
Click on App password
Step 10: Login again with Gmail password and verification code.
Step 11: Select the app and device for which you want to generate the app password. Then click Generate button. After clicking, App password will be generated, copy it and keep it