QuestionQ10Verified/File Processing and Communicating with a Program’s EnvironmentCopy linkReport a problemAsk AstroTutorSave questionWhat is the output of the following code? A127.0.0.1127.0.0.1BAn exception will be raised.C127.0.0.1localhostDlocalhostlocalhostShow AnswerAnswerExplanationConfigParser section mappings expose values inherited from DEFAULT. Assigning one section mapping to another copies the visible options into the new section at that time, so PostgreSQL receives host = localhost. The later assignment overrides only MySQL's host, producing 127.0.0.1 followed by localhost.Learn morePython documentation: configparserShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion