also note if you have more than 1 format parameter you need to use a tuple for the values:
print(\"You have %d berries, %s\" % (number, 'derp'))
the original code didn't work because you're using the + operator on different types of data. when used with int, it's mathematic, and with string it just concatenates. both is bad, you could however cast the int to a string: