Python_Institute
PCEP-30-02 · Question #360
Arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the temperature variable is equal to 0.0.
The correct conditional instruction is: if temperature == 0.0:
Module 3: Boolean Values, Conditional Execution, Loops, Lists and List Processing, Logical and Bitwise Operations
Question
Arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the temperature variable is equal to 0.0.
Explanation
The correct conditional instruction is: if temperature == 0.0:
Topics
#if statement#conditional execution#float comparison#else clause
Community Discussion
No community discussion yet for this question.