Feb-17-2019, 09:08 PM
Hello Python World!
I'm not new to programming, I am intermediate to advanced C family programmer (mostly focused on OpenGL at the moment), but I'm learning Python at work, plus I play on Codingame.com (check it out if you're unfamiliar with the games!)
Anyways, the range function does not work as described by the tutorial that I'm following, nor does it seem to behave according to the way it's described in the documentation.
When I use the range() function with any parameters whatsoever, the most I get back is:
range(<parameters re-written>)
In other words, it doesn't enumerate the list in the range provided, HOWEVER, when I use it in as a loop control variable, it does appear to loop through the range that I provide.
Is there something that I'm missing about my python install? Or is there something that I just don't understand about this range() function?
Anyways, everything else seems to work just fine, not sure why this function is not behaving as expected. I searched the forum before posting, as I was expecting a bunch of topics related to this, but did not find any....
Thanks,
Jeff Cummings
I'm not new to programming, I am intermediate to advanced C family programmer (mostly focused on OpenGL at the moment), but I'm learning Python at work, plus I play on Codingame.com (check it out if you're unfamiliar with the games!)
Anyways, the range function does not work as described by the tutorial that I'm following, nor does it seem to behave according to the way it's described in the documentation.
When I use the range() function with any parameters whatsoever, the most I get back is:
range(<parameters re-written>)
In other words, it doesn't enumerate the list in the range provided, HOWEVER, when I use it in as a loop control variable, it does appear to loop through the range that I provide.
Is there something that I'm missing about my python install? Or is there something that I just don't understand about this range() function?
Anyways, everything else seems to work just fine, not sure why this function is not behaving as expected. I searched the forum before posting, as I was expecting a bunch of topics related to this, but did not find any....
Thanks,
Jeff Cummings
