This study explores the impact of artificial intelligence on the teaching of programming, focusing on the GenAI Gemini tool in Google Colab. It evaluates how this technology influences the comprehension of fundamental concepts, teaching processes, and effective teaching practices. In this research, students’ motivation, interest, and satisfaction are determined, as well as the fulfillment and surpassing of their learning expectations. With a quantitative approach and a quasi-experimental design, an investigation was carried out in seven programming groups in a polytechnic university in Guayaquil, Ecuador. The results reveal that the use of GenAI significantly increases interest in programming, with 91% of the respondents expressing increased enthusiasm. In addition, 90% feel that the integration of GenAI meets their expectations, and 91% feel that it has exceeded those expectations in terms of educational support. This study evidences the value of integrating advanced technologies into education, suggesting that GenAI can transform the teaching of programming. However, successful implementation depends on timely training of educators, ethics training for students, ongoing interest in the technology, and a curriculum design that maximizes the capabilities of GenAI.