Lanqiao Waiting Examination Python Level 6 Level 008

Part One: Multiple Choice Questions

1. Python L 6  (15 points)

When you run the following program, which value is impossible to occur? ( )

import random

print(random.randint(0, 3) * 2)

  1. 0
  2. 2
  3. 3
  4. 6

Correct answer: C   

2. Python L 6  (15 points)

Run the following program and enter where

Guess you like

Origin blog.csdn.net/abilix_tony/article/details/133397091