python - Int has no attribute remove - Stack Overflow
stackoverflow.com › questions › 43909120May 11, 2017 · word[i] is an int which doesn't have a remove method (well, you already know that from the error message). In order to pick a random element from a list you can use random.choice. Then use the remove method of list to remove it. Keep in mind that if the same element is found more than once in the list then only the first occurrence will be removed from the list.