Python Repetition Structures: An Eye-Tracking Study with Novice Developers

root-parent1 pts0 comments

[2608.09875] Comprehending Python Repetition Structures: An Eye-Tracking Study with Novice Developers

Skip to main content

Search arXiv

Press Enter to search · Advanced search

-->

Computer Science > Software Engineering

arXiv:2608.09875 (cs)

[Submitted on 10 Aug 2026]

Title:Comprehending Python Repetition Structures: An Eye-Tracking Study with Novice Developers

Authors:José Júnior Silva da Costa, Rohit Gheyi, José Aldo Silva da Costa, Márcio Ribeiro<br>View a PDF of the paper titled Comprehending Python Repetition Structures: An Eye-Tracking Study with Novice Developers, by Jos\'e J\'unior Silva da Costa and 3 other authors

View PDF<br>HTML (experimental)

Abstract:Code comprehension is central to software maintenance and evolution, yet different Python repetition structures may impose distinct cognitive demands. We conducted a controlled eye-tracking experiment with 32 undergraduate students with prior Python experience to compare comprehension of for loops, while loops, recursion, and list comprehensions (LCs). Participants solved six comprehension tasks in a Latin Square design while we measured completion behavior and eye-tracking metrics over full snippets and construct-specific Areas of Interest (AOIs). for loops showed the lowest visual effort. Relative to for, while loops increased AOI fixation duration by up to 97% and regression count by 114%, with regressions concentrated around counter management. Recursion showed a descriptive 50% increase in regressions, mainly between the base case and recursive call. LCs increased AOI time by 62.5% and fixation duration by 80.9%, with horizontal regressions suggesting dense token-by-token parsing. LC comparisons yielded the clearest statistically significant pairwise differences, while the combined comparison of all non-for structures was significant across all eye-tracking metrics. These findings provide process-level evidence that Python repetition structures induce distinct visual-effort patterns, with implications for readability, code review, refactoring, onboarding, and maintainability.

Comments:<br>Paper accepted at Brazilian Symposium on Software Engineering (SBES) 2026

Subjects:

Software Engineering (cs.SE)

Cite as:<br>arXiv:2608.09875 [cs.SE]

(or<br>arXiv:2608.09875v1 [cs.SE] for this version)

https://doi.org/10.48550/arXiv.2608.09875

Focus to learn more

arXiv-issued DOI via DataCite (pending registration)

Submission history<br>From: Rohit Gheyi [view email]<br>[v1]<br>Mon, 10 Aug 2026 17:28:11 UTC (684 KB)

Full-text links:<br>Access Paper:

View a PDF of the paper titled Comprehending Python Repetition Structures: An Eye-Tracking Study with Novice Developers, by Jos\'e J\'unior Silva da Costa and 3 other authors<br>View PDF<br>HTML (experimental)<br>TeX Source

view license

Current browse context:

cs.SE

next >

new<br>recent<br>| 2026-08

Change to browse by:

cs

References & Citations

NASA ADS<br>Google Scholar

Semantic Scholar

export BibTeX citation<br>Loading...

BibTeX formatted citation

&times;

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs .

Which authors of this paper are endorsers? |<br>Disable MathJax (What is MathJax?)

Major funding support from

toggle arxiv python structures tracking repetition

Related Articles