Analysis of student misconceptions using python as an introductory programming language

Fionnuala Johnson, Stephen McQuistin, John O’Donnell

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Python has become a popular language for the delivery of introductory programming courses. Two reasons for this are Python’s convenience and syntactic simplicity, giving a low entry barrier for beginners and the ability to solve complex problems with short snippets of code. However, students exhibit widespread misconceptions about the meaning of basic language constructs, inhibiting their ability to solve problems and damaging their understanding of fundamental concepts. In this paper, we document our observations of level 1 university students over several years, as well as surveys probing the nature of their misconceptions. We analyze the misconceptions in relation to a notional machine model for Python, and show that many students form inadequate and brittle mental models of the language. Our results indicate that one of the major sources of misunderstanding is the heavy use of overloading in Python. Overloading hides the complexity of algorithms and data structures, often leading students to write code that involves mutability, sharing, copying, side effects, coroutines, concurrency, and lazy evaluation – and none of those topics are accessible to students who haven’t yet mastered basic assignments, conditionals, and looping. We suggest that Python, when taught alone, is insufficient as an introductory language: students can gain a firmer grasp of programming fundamentals when Python is presented alongside a complementary low level language that makes a notional machine clear and explicit.

Original languageEnglish
Title of host publicationProceedings - 4th Conference on Computing Education Practice, CEP 2020
PublisherACM
ISBN (Electronic)9781450377294
DOIs
Publication statusPublished - 9 Jan 2020
Event4th Conference on Computing Education Practice, CEP 2020 - Durham, United Kingdom
Duration: 9 Jan 2020 → …

Publication series

NameACM International Conference Proceeding Series

Conference

Conference4th Conference on Computing Education Practice, CEP 2020
Country/TerritoryUnited Kingdom
CityDurham
Period9/01/20 → …

Keywords

  • Introductory programming course
  • Misconceptions
  • Notional machine model
  • Overloading

Fingerprint

Dive into the research topics of 'Analysis of student misconceptions using python as an introductory programming language'. Together they form a unique fingerprint.

Cite this