Python Forum
Lab Assignment with Array's & Loops
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lab Assignment with Array's & Loops
#12
You've got your query loop inside your die roll loop. You need to roll the dice and then ask the question (or vice versa). As it is you are asking the question each time you roll a single die. Take the whole while True loop and unindent it one level.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Lab Assignment with Array's & Loops - by jonstryder - Aug-06-2019, 06:17 PM
RE: Lab Assignment with Array's & Loops - by ichabod801 - Aug-08-2019, 01:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with Loops in lab assignment jonstryder 6 3,487 Jul-28-2019, 06:40 PM
Last Post: ThomasL
  Array to get profit (school assignment) harryvandervelden 2 2,892 Nov-28-2017, 05:48 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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