Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions