We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3aa3cc commit 759994cCopy full SHA for 759994c
Wordle/wordle.py
@@ -52,8 +52,8 @@
52
if tries == 6:
53
print(f"You did not guess the word!\nThe word was {word}")
54
break
55
- # Get user input
56
- user_inp = input(">>")
+ # Get user input and make it all lower case
+ user_inp = input(">>").lower()
57
58
# Check if user wants to exit the program
59
if user_inp == "q":
@@ -127,7 +127,7 @@
127
return_answer += "-"
128
129
# Append checked letter to the list letters_checked
130
- if not do_not_add:
+ if not do_not_add:
131
letters_checked.append(user_inp[letter])
132
# Increase letters by 1
133
letter += 1
0 commit comments