File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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.
3535def userquestion ():
3636question = input ("\n You may ask a question.\n " )
3737print ("\n Thinking...\n " )
38- time .sleep (random .randrange (0 ,5 ))
38+ time .sleep (random .randrange (0 ,4 ))
3939print (random .choice (responses ))
4040
4141def main ():
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def main():
5959print (welcome )
6060retest = 0
6161while 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:" )
6363side2 = inputSides ("Select a value for the second side:" )
6464side3 = inputSides ("Select a value for the final side:" )
6565pythag_triple (side1 , side2 , side3 )
You can’t perform that action at this time.
0 commit comments