class human( object ) :
kind = 'humam'
def __init__ ( self , name, sex, age) :
self .name = name
self .sex = sex
self .age = age
def report( self ) :
print ( self .name )
print ( self .sex )
print ( self .age )
com = int ( input ( 'What would you like to do: \n 1) Add a contact \n 2) Info on a contact \n 3) Break\n ' ) )
humans = [ ]
while com != 3 :
if com == 1 :
name, sex, age = input ( 'Enter name sex age: ' ) .split ( )
humans.append ( human( name, sex, age) )
if com == 2 :
name = input ( 'Enter name: ' )
for somehuman in humans:
if name in somehuman.name :
somehuman.report ( )
com = int ( input ( 'What would you like to do: \n 1) Add a contact \n 2) Info on a contact \n 3) Break\n ' ) )
Y2xhc3MgaHVtYW4ob2JqZWN0KToKICAgIGtpbmQgPSAnaHVtYW0nCiAgICBkZWYgX19pbml0X18oc2VsZixuYW1lLCBzZXgsIGFnZSk6CiAgICAgICAgc2VsZi5uYW1lID0gbmFtZQogICAgICAgIHNlbGYuc2V4ID0gc2V4CiAgICAgICAgc2VsZi5hZ2UgPSBhZ2UKICAgIGRlZiByZXBvcnQoc2VsZik6CiAgICAgICAgcHJpbnQoc2VsZi5uYW1lKQogICAgICAgIHByaW50KHNlbGYuc2V4KQogICAgICAgIHByaW50KHNlbGYuYWdlKQpjb20gPSBpbnQoaW5wdXQoJ1doYXQgd291bGQgeW91IGxpa2UgdG8gZG86IFxuIDEpIEFkZCBhIGNvbnRhY3QgXG4gMikgSW5mbyBvbiBhIGNvbnRhY3QgXG4gMykgQnJlYWtcbicpKQoKaHVtYW5zID0gW10KCndoaWxlIGNvbSAhPSAzOgogICAgaWYgY29tID09IDE6CiAgICAgICAgbmFtZSxzZXgsYWdlID0gaW5wdXQoJ0VudGVyIG5hbWUgc2V4IGFnZTogJykuc3BsaXQoKQogICAgICAgIGh1bWFucy5hcHBlbmQoaHVtYW4obmFtZSxzZXgsYWdlKSkKICAgIGlmIGNvbSA9PSAyOgogICAgICAgIG5hbWUgPSBpbnB1dCgnRW50ZXIgbmFtZTogJykKICAgICAgICBmb3Igc29tZWh1bWFuIGluIGh1bWFuczoKICAgICAgICAgICAgaWYgbmFtZSBpbiBzb21laHVtYW4ubmFtZToKICAgICAgICAgICAgICAgIHNvbWVodW1hbi5yZXBvcnQoKQogICAgY29tID0gaW50KGlucHV0KCdXaGF0IHdvdWxkIHlvdSBsaWtlIHRvIGRvOiBcbiAxKSBBZGQgYSBjb250YWN0IFxuIDIpIEluZm8gb24gYSBjb250YWN0IFxuIDMpIEJyZWFrXG4nKSkK