The previous developer accidentally named a variable str. Since this name is reserved for a built-in type, the code below fails. Rename the variable in the whole code snippet (there are 3 occurrences) so that it doesn't shadow the reserved name.
As a result, the value of the variable should be Hello10. Remember that the str() function returns the string version of the given object.