gh-36221: get rid of xrange again
replace all `xrange` by `range`
apparently `xrange` tends to creep in
### :memo: Checklist
- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
URL: https://github.com/sagemath/sage/pull/36221
Reported by: Frédéric Chapoton
Reviewer(s): Matthias Köppe