I am trying to create a mix of word function and I'm getting an error nameError: name 'word '
def mix word (word): characterList = list (word); Printed character list import random; Random.shuffle (characterList); Print Character List; ShuffledWord = ''. Include (character list); Print shufflewd; traceback (most recent call final):
In file "", line 1, in
mix word (word)
Name error: Name 'word' is not defined
I think the problem is that you are calling mix word (word) without defining any word variable.
No comments:
Post a Comment