Python Forum
pythonroom Siblings Task
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pythonroom Siblings Task
#5
It's easiest to see how these things should be coded by using
a simple truth table:

   

only child if older siblings = False and younger siblings = False
oldest child if older siblings = False and younger siblings = True
youngest child if older siblings = True and younger siblings = False
middle child if older siblings = True and younger siblings = True
Reply


Messages In This Thread
pythonroom Siblings Task - by Rhysimus - Dec-01-2016, 11:47 PM
RE: pythonroom Siblings Task - by ichabod801 - Dec-02-2016, 02:30 AM
RE: pythonroom Siblings Task - by Rhysimus - Dec-02-2016, 05:11 PM
RE: pythonroom Siblings Task - by micseydel - Dec-02-2016, 04:25 PM
RE: pythonroom Siblings Task - by Larz60+ - Dec-02-2016, 09:09 PM
RE: pythonroom Siblings Task - by Rhysimus - Dec-03-2016, 01:30 PM
RE: pythonroom Siblings Task - by Larz60+ - Dec-03-2016, 09:38 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020