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
#5
(Aug-06-2019, 08:46 PM)jonstryder Wrote: I do need a loop in there, at least one, for the assignment to be accepted, in addition to a second array.

Okay, but I don't think your teacher is going to accept a loop that doesn't do anything and isn't needed. What about having them enter the number they need to hit? One loop to validate that input, and then automatically determine if they hit or not, tell them, and then if necessary ask for how many dice for damage, with another loop to validate that?
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-06-2019, 10:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with Loops in lab assignment jonstryder 6 3,452 Jul-28-2019, 06:40 PM
Last Post: ThomasL
  Array to get profit (school assignment) harryvandervelden 2 2,872 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