Lanqiao Waiting Examination Python Level 6 Level 003

Part One: Multiple Choice Questions

1, PythonL 6 (15 minutes)

Run the following program, the maximum possible output value is ().

importrandom

print(random.randint(2,4)*5)

  1. 10
  2. 15
  3. 20
  4. 30

Correct answer: C

2 , PythonL 6 (15 minutes)

Three people, A, B, and C, are running a race. It is known that A is not first and B is not second, and there is no tie for ranking.

おすすめ

転載: blog.csdn.net/abilix_tony/article/details/133395883