def main(): """ The main entry point of the application """ #get logger logger.setLevel(logging.INFO) # create the logging file handler and formatter fh = logging.FileHandler(FILEPATH) formatter = logging.Formatter( '%(asctime)s - %(name)s - %(levelname)s - %(message)s') fh.setFormatter(formatter) # add handler to logger object logger.addHandler(fh) logger.info("Program started") first.add(7, 8) second.add(7, 8) logger.info("Done!")
def fun1(): add() print('This is function 1')
def test_add(): assert second.add(1, 2) == 3
def test_add(): assert second.add(7, 3) == 10 assert second.add(7) == 9 assert second.add(5) == 7
import first from second import add print(__name__) result = add(5,6) print(result) hyori = first.Woman(45,165,120) hyori.show() hyori.eat() hyori.sleep() hyori.study() hyori.show()