chiark / gitweb /
files that make graphs
[familyTree.git] / familyTree / printAge.py
diff --git a/familyTree/printAge.py b/familyTree/printAge.py
new file mode 100755 (executable)
index 0000000..dc97d84
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+import askQuestion
+import sys     
+
+
+conn = askQuestion.connect()
+
+
+if len(sys.argv) < 2:
+       o = askQuestion.people_had_child_at_age(20,'\n')
+else:   
+     for i in range(1,len(sys.argv)):
+       o = askQuestion.people_had_child_at_age(sys.argv[i],'\n')
+
+
+print o
+
+
+askQuestion.close(conn)