Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Recent questions tagged Loop
0
votes
Q: What is the difference between range and xrange functions in Python 2.X?
Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it ... xrange(0, 20): Select the correct answer from above options...
asked
Jan 27, 2022
in
Education
by
JackTerrance
range
iterable
loop
0
votes
Q: Shuffling a list of objects
I have a list of objects in Python and I want to shuffle them. I thought I could use the random.shuffle method, ... (b) This will fail. Select the correct answer from above options...
asked
Jan 27, 2022
in
Education
by
JackTerrance
python
random
list
loop
0
votes
Q: Accessing the index in 'for' loops?
How can someone access the index itself for a list like the following : intg = [8, 23, 45, 12, 78, 90] When ... 1 to 6 in this case? Select the correct answer from above options...
asked
Jan 20, 2022
in
Education
by
JackTerrance
python
loop
list
To see more, click for the
full list of questions
or
popular tags
.
...