organization in the src structure, modification of README

This commit is contained in:
Mari Wahl 2015-01-06 18:30:04 -05:00
parent c2ca11f247
commit 6afe96fa4d
165 changed files with 64 additions and 184 deletions
src/builtin_structures/tuples

View file

@ -0,0 +1,17 @@
#!/usr/bin/python3
# mari von steinkirch @2013
# steinkirch at gmail
from collections import namedtuple
def namedtuple_example():
''' show some examples for namedtuple '''
sunnydale = namedtuple('name', ['job', 'age'])
buffy = sunnydale('slayer', '17')
print(buffy.job)
if __name__ == '__main__':
namedtuple_example()