Skip to content
Snippets Groups Projects
Commit 0c04f3b3 authored by ulif's avatar ulif
Browse files

pep8.

parent c36c7d0d
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,8 @@ class RealDiceRandomSource(object): ...@@ -151,7 +151,8 @@ class RealDiceRandomSource(object):
result = 0 result = 0
for i in range(num_rolls, 0, -1): for i in range(num_rolls, 0, -1):
rolled = None rolled = None
while rolled not in [str(x) for x in range(1, self.dice_sides + 1)]: while rolled not in [
str(x) for x in range(1, self.dice_sides + 1)]:
rolled = input_func( rolled = input_func(
"What number shows dice number %s? " % (num_rolls - i + 1)) "What number shows dice number %s? " % (num_rolls - i + 1))
result += ((self.dice_sides ** (i - 1)) * (int(rolled) - 1)) result += ((self.dice_sides ** (i - 1)) * (int(rolled) - 1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment