Hello guys thank you for see my question :)
I'm trying to make KaprekarsConstant but it's not running because Hnum, Lnum is not int.
So i want to make it to int, but i don't know how to do it
Please help me
Thank you for your reading.
def KaprekarsConstant(num):
count = 1
while num != 6174:
Hnum = "".join(sorted(num))
Lnum = "".join(sorted(num, reverse=True))
num = Lnum - Hnum
count += 1
return count