1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
soldi70 [24.7K]
3 years ago
10

Write a function called find_max that takes in a single parameter called random_list, which should be a list. This function will

find the maximum (max) value of the input list, and return it. This function will assume the list is composed of only positive numbers. To find the max, within the function, use a variable called list_max that you initialize to value 0. Then use a for loop to loop through random_list. Inside the list, use a conditional to check if the current value is larger than list_max, and if so, re-assign list_max to store this new value. After the loop, return list_max, which should now store the maximum value from within the input list.
Computers and Technology
1 answer:
liberstina [14]3 years ago
7 0

Answer:

see explaination

Explanation:

python code

def find_max(random_list):

list_max=0

for num in random_list:

if num > list_max:

list_max=num

return list_max

print(find_max([1,45,12,11,23]))

You might be interested in
Who is known as Father of Computer?
MrMuchimi
<h2>• Father=Charles Babbage</h2>

<h2>• Mother=Ada Lovelace</h2>

\\  \\  \\  \\

6 0
2 years ago
Read 2 more answers
A game design company develops a game in which players run a grocery store and need to keep tabs on the dollar amount of goods s
sdas [7]
I do believe it is Inventory management but I can never tell if it is the right answer. so my regards if it the wrong answer.

6 0
3 years ago
confidentiality ensures that only those with the rights and privileges to access information are able to do so.
Lapatulllka [165]

Confidentiality ensures that only those with the rights and privileges to access information are able to do so is a True statement.

<h3>What is confidentiality?</h3>

This is known to be the act of not sharing client information with people who are known to be a third party.

Note that confidentiality is said to be very important due to the fact that the Failure to protect and secure any kind of confidential information can make or lead to the loss of business as well as clients.

It is one that can even open the door to possible  danger of confidential information being misplace, misused to commit illegal activity.

Therefore, Confidentiality ensures that only those with the rights and privileges to access information are able to do so is a True statement.

Learn more about Confidentiality  from

brainly.com/question/863709

#SPJ1

Confidentiality ensures that only those with the rights and privileges to access information are able to do so. True or False

True

7 0
2 years ago
What is the output of the following C++ code? int x = 55; int y = 5; switch (x % 7) { case 0: case 1: y++; case 2: case 3: y = y
lianna [129]

Answer:

you get 2

Explanation:

3 0
3 years ago
A router is involved in ____________ layers of the tcp/ip protocol suite.
GenaCL600 [577]
Network Layer of the TCP/IP protocol
3 0
3 years ago
Other questions:
  • Numbering exception conditions, which often uses hierarchical numbering, in a fully developed use case description is helpful to
    7·1 answer
  • Why is wearable technology important?
    12·1 answer
  • Adult learners understand a topic best by doing it. It gives them both new skills and confidence in their ability to carryout th
    6·1 answer
  • Can web sites contain copyright material? <br> Yes <br> No
    10·2 answers
  • As photography developed, a variety of materials were employed as image capture surfaces. Choose the correct order
    7·1 answer
  • Which component is a part of the central processing unit (CPU) of a computer
    11·2 answers
  • "Explain the functionality of the different layers found in the network protocol stack of an operating system such as Linux"
    7·1 answer
  • MULTIPLE COICE! BRAINLIEST
    12·1 answer
  • Which of the following best describes the impact of Creative Commons?
    7·1 answer
  • When advertising on search engines, if you bid the same as your competitor, having a higher quality score will mean you appear w
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!