Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cdb5663

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in ee6d569 according to the output from Autopep8. Details: None
1 parent b44427d commit cdb5663

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎Dice Rolling Game/Dice_Rolling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import random
22

3+
34
def roll_dice():
45
return random.randint(1, 6)
56

7+
68
def ai_roll():
79
return roll_dice()
810

11+
912
def main():
1013
print("Welcome to Dice Rolling AI!")
1114

@@ -28,5 +31,6 @@ def main():
2831
else:
2932
print("It's a tie!")
3033

34+
3135
if __name__ == "__main__":
3236
main()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /