"Something went wrong :( Click Close to try again or refresh the page."


#1



Hey evryone, How can i get rid of this error message ? Thanks in advance.

https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/3?curriculum_id=4f89dab3d788890003000096

I don't know what's wrong with my code I just get an error message telling me to try again


score = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2,\
             "f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3,\
             "l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1,\
             "r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4, \
             "x": 8, "z": 10}

def scrabble_word(word):
    s = scrabble_score[index]

    if s in score:
        yield score[s]
    else:
        yield s
    while True:
    scrabble_score = raw_input('enter a word to get your a scrabble score (^v^) ').lower()
    
    if scrabble_score == 'end':
        break

    print ''.join(list(score(scrabble_score)))

Thanks in advance,


#2

Codecademy doesn't handle unicode correctly, stick to ascii


#3

Alright will stick to ascii.

Thanks for responding :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.