Question: What should the comment line #TODO be replaced with for the following program to display the highest number in the list B? Note: random()
What should the comment line #TODO be replaced with for the following program to display the highest number in the list B? Note: random() is a function of the random module that returns a random real number between 0 and 1. 10 11 15 17 18 #tq_182 C# Author: Youcef Derbal import random Eclass TQ102: 8 = [] @classmethod def populate(cls): for i in range (209): (cls.B).append(random.random()) @classmethod def get highest (cls): #TODO TQ102.populate() 04 print (TQ102.get_highest())
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Answer It appears there are several issues in the provided code inc... View full answer
Get step-by-step solutions from verified subject matter experts
