In our world, programming education gains increasing popularity. With the development of computers and the Internet, programming is becoming an essential part of education. Python is a powerful and easy-to-learn programming language, and it has been widely used in primary schools to universities. We noticed that students may have an interest in Python at the beginning of the study, but their interests will decrease after the learning becomes tedious. By combining magic and Python programming, their interests in programming can be motivated and it is also helpful to spread out python programming to others. Therefore, we made this video to educate Python learners at a primary level.The video contains three parts, the first part shows an interesting playing cards magic which is also easy to learn and reproduce. The second part illustrates the principle of magic with animation. The third part uses Python programming to show how to play the magic on the computer, which also teaches the Python programming skills for lists operations including appending, popping and randomizing.The video is intended for learners who have basic knowledge of Python and programming, and the video can raise their interest in further study of Python programming language. Many people are interested in magic and eager to know its principle. By combining magic and Python programming, we can illustrate the principle of magic and learn programming knowledge at the same time. It can enhance the impression of programming knowledge and attract more people to study programming. Which is beneficial for their future personal development.COMPSAC OER COMPETITION