Go to classroom.google.com or click on the "Classroom" icon.
Make sure to sign in with the correct account. If you're already signed in and for some reason need to switch accounts, go to the top-right corner, click your profile picture > select or add your account.
At the top, click Join class +.
Enter the class code from your teacher and click Join.