I am trying to create a mix of word function and I'm getting an error 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 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;
mix word (word) without defining any
word variable.
No comments:
Post a Comment