Python - Basics and Execution EnvironmentWhat is the recommended way to temporarily disable multiple lines of code in Python?AEnclose the code block within /* and */BAdd # at the start of each line to comment them outCWrap the code block inside <!-- and -->DUse triple quotes to enclose the code blockCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand disabling codePython does not support block comments like /* */ or .Step 2: Evaluate triple quotesTriple quotes create multi-line strings but do not disable code execution reliably.Step 3: Use # for each lineAdding # at the start of each line is the standard way to disable multiple lines temporarily.Final Answer:Add # at the start of each line -> Option BQuick Check:Use # per line to comment out code blocks [OK]Quick Trick: Use # on each line to disable code temporarily [OK]Common Mistakes:MISTAKESUsing /* */ which is invalid in PythonAssuming triple quotes disable code
Master "Basics and Execution Environment" in Python9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Python Quizzes Conditional Statements - Elif ladder execution - Quiz 13medium Data Types as Values - Truthy and falsy values in Python - Quiz 5medium Data Types as Values - String values and text handling - Quiz 10hard Input and Output - Escape characters in output - Quiz 9hard Input and Output - Escape characters in output - Quiz 10hard Loop Control - Break vs continue execution difference - Quiz 13medium Operators and Expression Evaluation - Assignment and augmented assignment - Quiz 1easy Python Basics and Execution Environment - What is Python - Quiz 1easy Variables and Dynamic Typing - Type checking using type() - Quiz 1easy Variables and Dynamic Typing - Variable assignment in Python - Quiz 15hard