Your issue is that you are re-using the same hash object, so you just keeping adding to it. Each time you should instantiate a new sha512() object. The code below works correctly.
import hashlib
h = hashlib.sha512()
text = 'beruk makye'
text_compare = '3beruk makye'
text_compare_hash = h.update(text_compare)
text_compare_hash = h.hexdigest()
ids = [1,2,3]
texts = []
bool_text = []
bool_text_hash = []
for id in ids:
texts.append(str(id) + text)
for i in texts:
hash = hashlib.sha512(i).hexdigest()
print i, hash, hash == text_compare_hash