Since its launch just over two years ago, the conversational chatbot ChatGPT developed by OpenAI has become integrated into the studies of students within the Swedish educational system. This paper investigates both teachers' perspectives and attitudes toward students using ChatGPT and the students' view of their perceived learning. Insights were gathered through questionnaires (for both students and teachers) and a learning session for students, revealing concerns and enthusiasm regarding ChatGPT's integration. Teachers express a lack of understanding on incorporating ChatGPT into education and perceive a lack of support from school leadership and the Swedish National Agency for Education. Identified scenarios suggest ChatGPT's potential for understanding concepts, but resistance toward its use in examinations. The students have a statistically significant enhancement in confidence and understanding of magnetism concepts after engaging with ChatGPT. This research contributes to ongoing discussions about integrating AI tools in education, emphasizing benefits and addressing ethical concerns and learning outcomes.