Python_Institute
PCEP-30-02 · Question #389
PCEP-30-02 Question #389: Real Exam Question with Answer & Explanation
The correct line of code should be: depth = int(input("Enter immersion depth:")). The sequence of blocks from left to right would be: depth, =, int(, input(, "Enter immersion depth:", ), ). Unused blocks are float( and the lone - block.
Question
Drag and Drop Question. Insert the code boxes in the correct positions in order to build a line of code which asks the user for an integer value and assigns it to the depth variable. (Note: some code boxes will not be used.)
Explanation
The correct line of code should be: depth = int(input("Enter immersion depth:")). The sequence of blocks from left to right would be: depth, =, int(, input(, "Enter immersion depth:", ), ). Unused blocks are float( and the lone - block.
Community Discussion
No community discussion yet for this question.