Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python debugging hw
#11
(Oct-05-2018, 09:30 PM)John0895 Wrote: Ok, I didn't see the space on line 3, so I removed that and added a break. Problem finally solved. Thanks all

Let's say if the user lost the game, meaning has gotten a number less than 50. And the user wanted to continue to play, how would I adjust the script to allow multiple spins?

Like some of the staff have said, i'm not going to tell you everything, because it is your homework, but I find using 'While' loops helps me.
AnythingYouWant = "Playing"
while AnythingYouWant == "Playing":
     #What you want to happen
Then, find a way to take it out of "Playing" mode when the player has had enough
Maybe ask the player if they wanna play again or not?

Hope I helped ya'
(And didn't give too much away)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Program debugging (python) abdullahali 5 3,278 Jan-17-2019, 04:31 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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