Python Programs For Logic Building