Python serves as a versatile programming language due to its diverse audience. This versatility, however, has a double-edged nature as it implies a multitude of learning examples, which can quickly become overwhelming for students. To explore these examples in an educational context, we investigate their usage in Python textbooks. Our approach involves the manual curation of 1,017 chapter titles from 76 Python textbooks. The results indicate that coding examples are prevalent, making up approximately 39.5% of the content compared to other topics. We then classified the example content into four types: Application Programming Interfaces, Data and Processing, Graphical User Interfaces, and others. We also identified a list of 19 Python libraries used in these various examples. To help educators and students, we showcase PyEdu, a Python Educational Example Visualizer that uses the results of the empirical study.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Extracting Educational Code Examples from Python Textbooks

  • Hathaichanok Damrongsiri,
  • Ruksit Rojpaisarnkit,
  • Indira Febriyanti,
  • Dong Wang,
  • Christoph Treude,
  • Raula Gaikovina Kula

摘要

Python serves as a versatile programming language due to its diverse audience. This versatility, however, has a double-edged nature as it implies a multitude of learning examples, which can quickly become overwhelming for students. To explore these examples in an educational context, we investigate their usage in Python textbooks. Our approach involves the manual curation of 1,017 chapter titles from 76 Python textbooks. The results indicate that coding examples are prevalent, making up approximately 39.5% of the content compared to other topics. We then classified the example content into four types: Application Programming Interfaces, Data and Processing, Graphical User Interfaces, and others. We also identified a list of 19 Python libraries used in these various examples. To help educators and students, we showcase PyEdu, a Python Educational Example Visualizer that uses the results of the empirical study.