Open Gmail, Click on top right circle with your name/initial in it. Click on manage Google Account or visit Google Account.
In the left sidebar, click on Security.
Under "How you sign in to Google," click on 2-Step Verification.
Click on Turn on 2-Step Verification button.
Click on Done button.
2-Step Verification will be enabled
Go to browser and type Get app email password or click on this image you will get the respected link.
After searching on browser scroll down and find out the link which is mentioned in image or or click on this image you will get the respected link.
Enter your Email Id and click on next button.
Enter your email password and click on next button.
Enter your App name and click on create button.
Copy the app password and save it in your device.
Click on Done button.
You have done with the 2-Step Verification and app password.
Thank you for following these steps!