Jump to content
Stef's Coding Community

AndyYYZ

New Members
  • Content Count

    2
  • Joined

  • Last visited

  • Days Won

    1

AndyYYZ last won the day on November 7 2017

AndyYYZ had the most liked content!

Community Reputation

2 Neutral

About AndyYYZ

  • Rank
    New member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Quotes & stories are just text, so that can be handled with a simple form. The user inputs text and submits the form, your code saves it - probably in a database - and you're done. Images might be an a URL to an existing image ( e.g. Photobucket ) or an actual image you allow them to upload via a form. Either way, the end result is almost the same - a URL to an image - one being your-site.com/images/img-name.jpg and the other external-site.com/their-url-system/img.jpg So you'd handle them differently but end up with a URL of some sort, that can be stored in the database. The
  2. You need a variable to store the total of the non-six rolls and a loop so that it repeats until a 6 is rolled. I don't know python, so this is somewhat pseudocode - based on the code above... total = 0 roll = 0 while ( roll != 6 ): roll = random.randint(1, 6) total = total + roll print("You rolled a ", roll, " Your total score is: ", total) print("You rolled a 6, game over") Edit: My indentation is wrong ( I think Python cares about that stuff ) so copy / pasting my code probably won't work !
×
×
  • Create New...