Skip to content

Commit 288f54f

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in 4c8daab according to the output from Autopep8. Details: None
1 parent 1f67e7b commit 288f54f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Drawing Guess AI/drawing.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
import random
22

3+
34
def choose_word():
4-
words = ["apple", "banana", "car", "dog", "elephant", "flower", "guitar", "house", "ice cream", "jacket"]
5+
words = ["apple", "banana", "car", "dog", "elephant",
6+
"flower", "guitar", "house", "ice cream", "jacket"]
57
return random.choice(words)
68

9+
710
def draw_object(word):
811
print(f"Draw a {word} on the screen.")
912

13+
1014
def guess_object():
1115
guess = input("Enter your guess: ").lower()
1216
return guess
1317

18+
1419
def main():
1520
print("Welcome to Drawing Guess AI!")
1621
word_to_draw = choose_word()
@@ -25,5 +30,6 @@ def main():
2530
else:
2631
print("Oops! That's not the right guess. Try again!")
2732

33+
2834
if __name__ == "__main__":
2935
main()

0 commit comments

Comments
 (0)