Python Forum
Correspondence of values - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Correspondence of values (/thread-7504.html)

Pages: 1 2


RE: Correspondence of values - William049 - Jan-13-2018

OKey that work but the result is not good xD

 Merci de saisir votre choix parmit ce qui est proposé dans le menu ci dessus : 5
Nom :PEREZ
Prenom :THIERRY
Les descendants connus de cette personne sont [1, 2]
KEVINPAUL
As you can see they are attached

I just modified a little bit you code like that :

print('\n'.join(function(listepersonnes, descendants(num1))))
So now they appear like that :) :

Les descendants connus de cette personne sont [2, 1]
KEVIN
PAUL

That's perfect ;)

Thanks for all :)
Now 100% of my family tree project is working :)
It's done with 220 lines :)