Python Forum
Cannot Assign right Answers To Shuffled Questions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot Assign right Answers To Shuffled Questions
#7
Actually there is no need to pop(). pop() will reindex the list you pop from. This would not make difference for small list, but is good to know. It's enough to shuffle the list and iterate over shuffled list. In case you need less than all questions - just break out of the loop.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Cannot Assign right Answers To Shuffled Questions - by buran - Jan-22-2021, 09:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  'answers 2' is not defined on line 27 0814uu 4 804 Sep-02-2023, 11:02 PM
Last Post: 0814uu
  Division calcuation with answers to 1decimal place. sik 3 2,175 Jul-15-2021, 08:15 AM
Last Post: DeaD_EyE
  Using answers from an input function Totalartist 3 2,252 Jul-19-2019, 02:02 PM
Last Post: snippsat
  Writing Answers From Questionnaire to a new .txt Document FizzyBreak579 4 3,615 Feb-16-2018, 07:26 AM
Last Post: buran
  Discord bot that asks questions and based on response answers or asks more questions absinthium 1 45,035 Nov-25-2017, 06:21 AM
Last Post: heiner55
  Need Answers 20nick20 6 5,487 Apr-29-2017, 04:06 PM
Last Post: Larz60+
  Code that generates MD5 hashes from IPv6 addresses giving differant answers? PyMD5 4 6,520 Oct-17-2016, 02:39 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020