Back to Search Start Over

Analysis of Student Misconceptions Using Python as an Introductory Programming Language

Authors :
John T. O'Donnell
Fionnuala Johnson
Stephen McQuistin
Source :
CEP
Publication Year :
2020

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.

Details

Language :
English
ISBN :
978-1-4503-7729-4
ISBNs :
9781450377294
Database :
OpenAIRE
Journal :
CEP
Accession number :
edsair.doi.dedup.....cb22bda1363d7ed13c1dd11fdefe5a9f