You make response=i ten times so when the loop is finished the response variable is equal to 9 and 9 is not a printable ASCII character.
You make response=i ten times so when the loop is finished the response variable is equal to 9 and 9 is not a printable ASCII character.