use google class code code example
Example: choose how to enter your class
Go to classroom.google.com and click Sign In. Sign in with your Google Account. ...
Make sure to sign in with the correct account. ...
At the top, click Add. ...
Enter the class code your teacher gave you and click Join.