NameError: global name ‘xrange’ is not defined in Python 3 August 14, 2022 by Magenaut I am getting an error when running a python program: