Python codes and programs