nerdexam
Python_Institute

PCEP-30-02 · Question #313

How many stars will the following snippet send to the console? ``python for i in range(-1, 1): print('**') ``

The correct answer is B. two. See the full explanation below for the reasoning.

Question

How many stars will the following snippet send to the console?
for i in range(-1, 1):
 print('**')

Options

  • Athree
  • Btwo
  • Cone

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    80% (20)
  • C
    12% (3)

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice