Skip to content

Commit 759994c

Browse files
committed
Update wordle.py
1 parent c3aa3cc commit 759994c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Wordle/wordle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
if tries == 6:
5353
print(f"You did not guess the word!\nThe word was {word}")
5454
break
55-
# Get user input
56-
user_inp = input(">>")
55+
# Get user input and make it all lower case
56+
user_inp = input(">>").lower()
5757

5858
# Check if user wants to exit the program
5959
if user_inp == "q":
@@ -127,7 +127,7 @@
127127
return_answer += "-"
128128

129129
# Append checked letter to the list letters_checked
130-
if not do_not_add:
130+
if not do_not_add:
131131
letters_checked.append(user_inp[letter])
132132
# Increase letters by 1
133133
letter += 1

0 commit comments

Comments
 (0)