Python Forum
Beginner needs a little help with flashcard program
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beginner needs a little help with flashcard program
#2
I would put them in a list of tuples: cards = [(question1, answer1), (question2, answer2), ...]. Then you can loop through them like this: for question, answer in cards:. Also, you can random shuffle the list, and the answers will stay with the questions.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Beginner needs a little help with flashcard program - by ichabod801 - May-25-2019, 01:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  creating simplex tableau pivot program easy or difficult for a beginner in Python? alex_0 2 2,590 Mar-31-2021, 03:39 AM
Last Post: Larz60+
  Beginner python password program jakobscheffler 4 5,062 Jan-23-2019, 08:14 PM
Last Post: Alfalfa

Forum Jump:

User Panel Messages

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