def baleines(): u=... n=... while ...: u=... n=... return(...)