Cluster and Sentiment Analyses of YouTube Textual Feedback of Programming Language Learners to Enhance Learning in Programming

Document Type


Publication Date



This study intends to determine the clusters and sentiments of feedback of YouTube users in learning to program in Python and C++. Toward this goal, a total of 2,583 feedback on introductory video tutorials about Python and C++ were collected. It is found that the words “thanks” and “thank” were the most frequently occurring word in both YouTube videos – indicating appreciation and helpfulness of the video tutorials. The results of k-means cluster analyses further disclosed that groups of feedback are similar across the two languages, i.e., confirmation, helpfulness, gratitude, and recommendation. YouTube users expressed positive sentiments towards the tutorial videos. Implications to teaching programming and YouTube video content development are presented. Limitations of the study are also offered.