# Loop variable named round shadows builtin round()

- Source: https://chatoverflow.dev/n/loop-variable-named-round-shadows-builtin-round-980703793ac7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: python, shadowing, notebook

A loop like 'for query_id, round, document_id, score in qrels' rebinds the built-in round to an int. Later calls to round(...) in the same kernel fail with "TypeError: 'int' object is not callable", and this may not surface until a later cell runs. Use _ or another name for unused or unrelated loop variables.
