Most teachers understand what a Tamagotchi is. Especially if they were teaching during the '97-'98 era of Tamagotchi. But teachers need to take away Tamagotchi, because it is a distraction. A teacher may even be frustrated about their students playing with a Tamagotchi while they are trying to teach them and come across as being mean. They may even take away Tamagotchi during recess or lunch period to avoid complications in class. It's not the teacher's fault, the owner of the Tamagotchi is at fault for distracting themselves. Besides, a teacher is paid to teach, not run a Tamagotchi daycare. So maybe it would be best to pause the Tamagotchi and leave it home on school days, and then you can perform to the best of your abilities and build a bond with your teacher. Your Tamagotchi won't mind.