Skip to main content
⚡
← Courses
›
Python Foundations
›
Module 7 · Advanced standard library
›
logging vs print
quiz
143 / 170
🇺🇸
EN
▼
↗
Share
💬 Discuss
🧪 Playground
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Why prefer \`logging\` over \`print\` in production code? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
Keep going
🐍
quiz
argparse for CLI tools
🐍
fill
FREE
Variables
🐍
quiz
FREE
Data types
🎯 Quiz
Question
📝 **Question:** Why prefer \`logging\` over \`print\` in production code? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
print is slower than logging
B
print only works in Python 2
C
logging has levels, can be redirected to files/syslog, and adds timestamps/module info automatically
D
print uses more memory than logging
Submit answer
📣 Help someone learn Python
Share this lesson with a friend — the first 15 are free, no signup.
📣 Share
Tweet
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…