In the age of artificial intelligence, programming skills are becoming increasingly important. Recognizing the importance of coding as a critical skill for future generations, Education in coding is becoming increasingly important in basic and secondary schools. However, the current status of programming education in schools remains unclear. The current state of programming education in elementary and high schools is examined and analyzed in this research. It centers on a subset of educators who took part in an online professional development course designed for educators teaching programming in a few Libyan schools. The study collects data using a dependable questionnaire, and to explain and evaluate the survey results, statistical analysis tools like Microsoft Excel and SPSS are used. The findings show that curriculum creation must be improved and that primary and secondary schools' overall programming instruction is of subpar quality. Though they lack much fundamental knowledge, students exhibit a great enthusiasm in studying programming, and teachers have a good attitude toward teaching programming. Considering the findings, the paper offers specific ideas for enhancing operational procedures, curricular standards, teacher preparation, and resource sharing.