> def ask_for_a_digit():
> while True:
> digit = raw_input("Give me a digit between 0 and 9.")
> if digit not in "0123456789":
> print "You didn't give me a digit. Try again."
> else:
> return int(digit)
Ooops. I made a mistake. ask_for_a_dig
Hi Spyros,
Ok, reading the code...
> def bubbleSort_ascending(unsorted):
> """ Sorts a list of numbers in ascending order """
> n = len(unsorted)
> count = swaps = 0
> swapped = True
> ## Prompt user to choose if they want to see each sorting step
> option = raw_input("Sho
Many thanks for the link as well as for the pseudocode & code. I see what I
did wrong now. Here's the final version that works:
def bubbleSort_ascending(unsorted):
""" Sorts a list of numbers in ascending order """
n = len(unsorted)
count = swaps = 0
swapped = True
## Pro
On Sun, Nov 16, 2014 at 1:52 PM, Andrew McReynolds
wrote:
> The section of the assignment that I'm working on states:
> 2) Write a function called loadGameBoard (player_marks) where player_marks
> is a dictionary that
> contains the players’ marks. This function creates a 3x3 array with the
> play
The section of the assignment that I'm working on states: 2) Write a function
called loadGameBoard (player_marks) where player_marks is a dictionary that
contains the players’ marks. This function creates a 3x3 array with the
players’ marks populated in the correct row/column indices using the f
On 16/11/14 04:06, Crush wrote:
Below was the post that was sent from the wrong email. Not sure if the
first post went through, so in the event it did not, I will post again;
if it was posted twice, I apologize for the redundancy.
The original got through without appearing in the moderation que