I'm doing an implementation of the algorithm A Star (A *).
My question is just the title, I come from java and c ++, and I do not know how to do this in python.
def transfTo(Bucket a): <------------Dúvida aqui!
transf = a.total - a.current
if current >= transf:
a.current = a.total
current -= transf
else:
a.total += current
current = 0