Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
edricx committed Aug 13, 2020
1 parent 7dac858 commit 9f785bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions b9/rand.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
def main():

parser = argparse.ArgumentParser()

parser.add_argument(
dest="object",
dest="object",
choices=["coin", "dice"],
help="Use 'coin' to flip a coin or 'dice' to roll a die"
)

parser.add_argument(
"-i", "--iterations",
"-i", "--iterations",
dest="iterations",
type=int,
default=1,
help="Number of times to flip a coin or roll dice (max=100)"
)

# COMMIT 1: Add -s flag for number of sides on a die


Expand Down Expand Up @@ -59,7 +59,7 @@ def roll_dice(iterations, sides):

# COMMIT 3: Restrict input range for dice iterations and sides


# COMMIT 2: Add dice rolling logic and output dice sum and sequence


Expand Down
14 changes: 7 additions & 7 deletions b9/rand_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
def main():

parser = argparse.ArgumentParser()

parser.add_argument(
dest="object",
dest="object",
choices=["coin", "dice"],
help="Use 'coin' to flip a coin or 'dice' to roll a die"
)

parser.add_argument(
"-i", "--iterations",
"-i", "--iterations",
dest="iterations",
type=int,
default=1,
help="Number of times to flip a coin or roll dice (max=100)"
)

# COMMIT 1: Add -s flag for number of sides on a die
parser.add_argument(
"-s", "--sides",
"-s", "--sides",
dest="sides",
type=int,
default=6,
Expand Down Expand Up @@ -73,7 +73,7 @@ def roll_dice(iterations, sides):
print("Number of sides must be in the range [1 - {}]"
.format(MAX_SIDES))
return

# COMMIT 2: Add dice rolling logic and output dice sum and sequence
diceRecord, diceSum = [], 0
for i in range(iterations):
Expand Down

0 comments on commit 9f785bc

Please sign in to comment.