Whats the difference between creating a list through a method like
x= list('')
and this
x = ['']
Here is the code if I use list [] to make a list it will think every letter is wrong but if I use list() it works perfectly fine
mainword = input("Enter your word").lower()
builtword = ''
number = list(mainword)
correctLetters = list(number)
buildword2 = ['']
userGuess = input("Guess letter").lower()
print(userGuess)
while builtword != mainword:
if userGuess in correctLetters:
print('That was correct')
x = number.find(userGuess)
print(x)
builtword = builtword+userGuess.lower()
print(builtword)
if builtword != mainword:
userGuess = input("Guess letter").lower()
else:
print('sorry that\'s wrong try again')
userGuess = input("Guess letter").lower()
print("Congratulations you finished the word was "+mainword.capitalize())'''