Feb-17-2018, 07:38 PM
(This post was last modified: Feb-17-2018, 07:39 PM by Gribouillis.)
As such, the function is not correct. Line 16 should be
player_info[1] = player_info[1] + word_score(word)Giving a new value to the local variable by a statement such as
player_info = ...
cannot change anything out of the function.