Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi could you please assist me with this question using a for loop. Don't use the built in max() function as this is very easy.

Hi could you please assist me with this question using a for loop. Don't use the built in max() function as this is very easy. Instead use a "for loop" to implement the solution.

The question is to be solved in the skeleton provided below (screenshot).

  1. find the high number
  2. Write the code as a function and call the function with the list of numbers as parameter.
  3. print result to see outcome
image text in transcribed
In [3]: # List of numbers lst_num - [1, 10, 20, 30. 5] f 1. Define the function def max_items(items): max I O # Write your code below this line return max # 2. Call the function # Write your code below this line

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_2

Step: 3

blur-text-image_3

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Primary function of root ?

Answered: 1 week ago

Question

The only phyto hormone which is a gas at ordinary temperature?

Answered: 1 week ago

Question

The two fluids that circular in the body?

Answered: 1 week ago

Question

Eliminated from the body?

Answered: 1 week ago