Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function called biggest() that takes a list of integers (data) and returns a new list of integers (of length 2). The first number

image text in transcribed
image text in transcribed
Write a function called biggest() that takes a list of integers (data) and returns a new list of integers (of length 2). The first number in the returned list is the biggest number in the input list. The second number is the number of times that the this biggest number appears in the input list. The function is called as follows: biggest (data) Use the name shown above for the input parameter. The input list will always have at least one number in it. For full marks, your function must use a for loop. You can use a while loop to receive partial/most marks for this problem. Do NOT use any built-in Iunctions or modules that find the largest number for you (like the max() function) For example, (highlight shows the biggest numbers in the input) >>> biggest ( [1,1, 12, 11, 12, 11, 12,-1,-2,8,2] ) [12,3) >>> biggest (191) [9,1] 6:52 Music Done 7 of 7 biggest Use the same shown above for the put parameter The input will always have at least center in For full marks your function must use a for love can use a while loop to receive partial mosti this problem. Do NOT use any built in functions of modules that find the largest number for vore the max) function) For example, thighlight sous biggest nubes the input) >> biggest 12 Sao 19 Do NOT wse any built in functions of moduleht find the largest number for you the most functions

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

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Contrast feedforward, concurrent, and feedback controls.

Answered: 1 week ago

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago