Code AnalysisIntermediate 45s
logging basicConfig
What is the output?
Starter code
import logging, io
stream = io.StringIO()
logging.basicConfig(stream=stream, level=logging.INFO)
logging.debug("debug")
logging.info("info")
print("info" in stream.getvalue())Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.