Skip to content

Commit 514ef04

Browse files
committed
Code review
1 parent 69fc300 commit 514ef04

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Magic8Ball.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Authour: azmathias Stuperuser Ltd
1+
# Authour: azmathias Stuperuser Ltd
22
# Purpose: Magic 8 Ball
3-
#Simulate a magic 8-ball.
4-
#Allow the user to enter their question.
5-
#Display an in progress message(i.e. "thinking").
6-
#Create 20 responses, and show a random response.
7-
#Allow the user to ask another question or quit.
3+
# Simulate a magic 8-ball.
4+
# Allow the user to enter their question.
5+
# Display an in progress message(i.e. "thinking").
6+
# Create 20 responses, and show a random response.
7+
# Allow the user to ask another question or quit.
88
# Bonus:
99
# Add a gui.
1010
# It must have box for users to enter the question.
@@ -35,7 +35,7 @@
3535
def userquestion():
3636
question = input("\nYou may ask a question.\n")
3737
print("\nThinking...\n")
38-
time.sleep(random.randrange(0,5))
38+
time.sleep(random.randrange(0,4))
3939
print(random.choice(responses))
4040

4141
def main():

PythagoreanTriplesChecker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main():
5959
print(welcome)
6060
retest = 0
6161
while retest != -1:
62-
side1 = inputSides("Select a value side 1 of the triangle:")
62+
side1 = inputSides("Select a value for side 1 of the triangle:")
6363
side2 = inputSides("Select a value for the second side:")
6464
side3 = inputSides("Select a value for the final side:")
6565
pythag_triple(side1, side2, side3)

0 commit comments

Comments
 (0)