def encadre(p): k = 2 a = 9/4; b = 4 while ... : k = ... a = ... b = ... return(a,b)