codes extraidos do book "learn python the hard way"