Question: import random for i in range( 5 ): num = random.randint( 1 , 10 ) if num

import random for i in range(5): num = random.randint(1, 10) if num <= 2: continue print(num) 

Which statements about the program above is true?

A. The program always generates 5random integers

B. The program always displays5random integers

C. Random integers displayed can be assmall as 1

D. None of the above is true

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!