8.3.5: Max In List
Write the function max_int_in_list that takes a list of ints and returns the biggest int in the list. You can assume that the list has at least one int in it. A call to this function would look like:

my_list = [5, 2, -5, 10, 23, -21]
biggest_int = max_int_in_list(my_list)
# biggest_int is now 23
Do not use the built-in function max in your program!

Hint: The highest number in the list might be negative! Make sure your function correctly handles that case.

Answers

Answer 1

Answer:

here!!

Explanation:

# Write code here...

def max_int_in_list(my_list):

   highest = my_list[4]

   

   for num in my_list:

       if num > highest:

           highest = num

       return highest

my_list = [5, 2, -5, 10, 23, -21]

biggest_int = max_int_in_list(my_list)

print biggest_int

Answer 2

A version of the required program written in python 3 is given below.

my_list = [5, 2, -5, 10, 23, -21]

def max_int_in_list(my_list):

#iniate the function named max_int_in_list which takes in a list argument

maximum = my_list[0]

#set the first value in the list as maximum

for num in my_list:

#iterate through every value in the list

if num > maximum:

#Check if any of the iterated values in the list is greater than the set maximum value

maximum = num

#if so set the Number as the new maximum value

return maximum

#return the maximum value

print(max_int_in_list(my_list))

A SCREENSHOT of the program output is attached.

Learn more on python programs :https://brainly.com/question/24782250

8.3.5: Max In ListWrite The Function Max_int_in_list That Takes A List Of Ints And Returns The Biggest

Related Questions

#3: Which combination of statements can be used to express algorithms?
A) Iterative, sequential, and selection
B) Correctness, efficiency, and clarity
C) Readable, iterative, and efficient
D) Selection, conditional, and Boolean

Answers

Answer:

A) Iterative, sequential, and selection

Explanation:

Which of these is not an example of a transition

Answers

Answer: post the picture

Explanation:

1. Take the picture

2. Post it on brainly

3. Get your answer

How do we know if we can believe the things on the internet?

Answers

Answer:

you have to check for reliability

Explanation:

Answer:

you can't always believe the internet some stuff is false are bended

Explanation:

yea

Single-Select Questions with Reading Passage #1 Grocery Grabbr The following passage will be used to answer questions #1 - #5 Markus is finding that it takes too long to track down all of the groceries he needs to buy from a given store. Grocery Grabbr to the rescue! The app allows Markus to input his shopping list and search for his local grocery store in Grocery Grabbr's database. If his grocery store is there, Markus is all set to go! The database stores grocery items, cost, and item location information for each grocery store. When Markus walks into the store, a notification pops up on his smartphone letting him know that Grocery Grabbr is ready to get to work. Each of Markus' grocery items is displayed one at a time, along with the aisle number and shelf location. After Markus grabs his items off the shelf, he hits a button on the app to navigate to the next item. The list of items is arranged so that Markus follows the most efficient path through the grocery store. When Markus finishes shopping, the total amount of money his groceries cost is displayed, which allows him to double check the total cost with the cashier. Grocery Grabbr pays grocery stores a small amount of money for each user who successfully uses the app and checks out of the store with over one hundred dollars worth of groceries.
Question: Which of the following data must be obtained from the user's smartphone in order for Grocery Grabbr to suggest the order for picking up groceries?
A. the grocery list the user input
B. the location of the grocery store
C. the user's photo album on their smartphone
D. the user's current location

Answers

Answer:

A. the grocery list the user input

D. the user's current location

Explanation:

In the passage provided the only actual user inputs that is needed is the grocery list and then the user must choose from a list of available grocery stores. They do not need to enter the location of the grocery store. Therefore, the only actual pieces of data that the app would need are the grocery list that the user inputs and the user's current location in order to provide the list of available nearby grocery stores for picking up the groceries. This is done through the GPS on the smartphone.

What is the correct HTML for adding a background color?


Question 7 options:


< background>yellow


< body background-color=yellow>


< body bg="yellow">


< body style="background-color:yellow;">

Answers

Answer:

< body background-color=yellow>

Explanation:

This is the correct HTML command that is used for adding a background color of choice.

Sarah has an audio file to insert into a presentation, but she does not want the entire file to play. What should she do to have only a portion of the file play when the audio control is selected?

1. Create bookmarks.
2. Edit the file prior to inserting it into the presentation.
3. Use the Trim Audio dialog box.
4. Configure Audio styles.

Answers

Answer:

3. Use the Trim Audio dialog box. :3

Answer:

3: Use the Trim Audio dialog box.

Explanation:

I am not entirely sure, though I am quite certain.

Suggest three ways in which celebrating an occasion influences food choices?

Answers


Celebrating influences food in more than 1 way

Answer:

It can completely show the different flavors that might have influenced the people at the past like their traditional spices and their main ingredients. It also is just a big part of celebrations because usually every single celebration comes with food and drinks.

First to put f in the comments for will get brainliest no cap

Answers

Answer:

F

Explanation: Can I get brainliest pls I am big brain

You are adding a new rack to your data center, which will house two new blade servers and a new switch. The new servers will be used for file storage and a database server. The only space you have available in the data center is on the opposite side of the room from your existing rack, which already houses several servers, a switch, and a router. You plan to configure a trunk port on each switch and connect them with a cross-over UTP plenum cable that will run through the suspended tile ceiling of the data center. To provide power for the new devices, you had an electrician install several new 20-amp wall outlets near the new rack. Each device in the rack will be plugged directly into one of these new wall outlets. What is wrong with this configuration

Answers

Answer: • You should implement a UPS between the wall outlet and the network devices.

• You should implement redundant power supplies for the network devices.

Explanation:

Based in the information given in the question, the options that explain things wrong in the configuration is that:

• You should implement a UPS between the wall outlet and the network devices.

• You should implement redundant power supplies for the network devices.

On the Audio Tools contextual tab, which tab will control how the audio file appears, if it appears, on the slide itself?

A.) Bookmarks
B.) Playback
C.) Format
D.) Design

Answers

Answer:

B. Playback

Explanation:

Playback is the act of reproducing recorded sound; “he was allowed to hear the playback of his testimony”. The part of a tape recorder that reproduces the recorded material.

On the audio tools contextual tab, “playback” will control how the audio file appears, if it appears, on the slide itself.

Therefore, the correct answer is b. playback.

Answer:

C) Format

Explanation:

The audio format tab gives you all of these options to adjust the appearance of the image representing the audio:

How do you fix this!!!!

Answers

Answer:

ldek

Explanation:

what do you mean by radix of a number system​

Answers

Answer:

The description on the given topic is summarized in the below explanation segment.

Explanation:

One concept is known as the radix, always seemed to denote the sequence of numbers or digits included throughout a spot numbering scheme before actually "moving over" towards the next number.There would be a variety of different components or figures throughout a place number system scheme, plus the point zero.

You created a pen as an instance of turtle. You drew a line. What does the following line do?

up()


moves all drawings one step up

"lifts" the pen so you can move it without drawing

moves the pen one step up

points the pen so it is pointing straight up

Answers

Answer:you will program a Java version of the robot to draw some simple images. ... If you do this (or instantiate the object by right-clicking in BlueJ), you ... to draw a line when it moves, use the penUp() method to raise the pen (and ... Note that you can create multiple turtles and they will all show up on

Explanation:

When you create a pen as an instance of turtle and draw a line, the line up(): C. moves the pen one step up.

What is an instance?

In object-oriented programming (OOP) language, an instance can be defined as the variables that are declared within a class.

This ultimately implies that, an instance is a realization of any object belonging to a class.

In this context, the line up() moves the pen one step up when you create a pen as an instance of turtle and draw a line.

Read more on object class here: brainly.com/question/20264183

#SPJ2

Starting from the input.Txt file which contains surname, name and age separated by a semicolon, write in the output.Txt file surname, name and age separated by semicolons only for students of age

Answers

Answer:

Explanation:

The following code was written in Python. Since no actual age was given in the question I created a function that takes in the age as a parameter. It then loops throught all of the entries in the input.txt file and selects only the ones that have the age higher than the passed argument and writes it to the output file. The code and both the input.txt and output.txt files can be seen in the image below.

def printCSV(age):

   f = open("input.txt", "r")

   f_output = open("output.txt", "w")

   for line in f.readlines():

       line_split = line.replace(" ", '').replace('\n', '').split(';')

       if int(line_split[2]) >= age:

           f_output.write(line)

           print(line)

   f_output.close()

Mike needs to export some animation videos from his smartphone to an online platform. Which common file format can he use for this purpose?

A..swf
B..flv
C..mov
D..3gp

Answers

The answer would be b

Answer:

The correct answer is D.  3gp

Explanation:

state three advantages of using a printer​

Answers

Answer:

Advantage: Convenience. One of the key advantages of printing out material is that it is convenient.

Advantage: Secure Delivery. Paper records can be anonymously delivered

Advantage: Ease of Reading

I hope It helps

You are planning a storage solution for a new Windows server. The server will be used for file and print services and as a database server. The new server has five hard disks, all with equal capacity. Your storage solution should meet the following requirements: System files should be on a volume separate from data files. All volumes should be protected so that the server can continue to run in the event of a failure of one of the disks. The data volume should be optimized for improved disk access times. You will use Windows Disk Management to create and manage the volumes. What should you do

Answers

Answer:

Explanation:

The best solution for this scenario would be to first create a mirrored volume for the system volume using two of the available disks and then a single RAID 5 volume with the remaining 3 disks for the data volume. This setup will allow all of the data to be backed up so that if one of the disks fails the server will continue running accordingly. The RAID 5 volume offers error checking and redundancy for the data, therefore, allowing the data to be accessed quickly and efficiently with far greater security and far less chance of data becoming corrupt.

Plz help!!!!

Select the correct answer.
What testing approach does a development team use when testing the developed code rather than just the functionality of the code?

A.white box testing

B.black box testing

C.acceptance testing

D.usability testing

Answers

Answer:

I am think it is A i don't know that one.

Explanation:

The answer is D, usability testing

Need answer ASAP!!!!!

Select the correct answer.
What stage of software development incorporates planning to help make changes in the project plan based on reviews?
OA.project startup
OB. proposal stage
OC. periodic checks
OD. product delivery

Answers

Answer:

Option C

Explanation:

Periodic check are similar to period inspection done by a team comprising of software developers who check the flow and output of the core during the different stages of software development.  

The team also do the auditing to check whether the work products meet the different client requirement and thus revise the project plans.

Hence, option C is correct

(This has nothing to do with homework by the way) I'm graduating to the 9th grade this year... do the FSA/EOC scores determine my graduation or do my grades?

Answers

Answer:

I dont think so.

Explanation:

Complete the sentence.
You might create algorithms and flowcharts during the ______ phase of software development.

Release

Planning

Design

Coding

Answers

You might create algorithms and flowcharts during the Design phase of software development.

What is the algorithms  about?

In software development, the Design phase is a crucial step in which the developers plan and determine how the software will be built. This involves breaking down the requirements and specifications into smaller, manageable components and then figuring out how these components will work together.

Therefore, to accomplish this, developers often create diagrams, such as flowcharts or algorithms, to help visualize the software's logic and structure. These diagrams can then be used to guide the development of the software, ensuring that all parts of the project are aligned and working towards the same goals.

Learn more about algorithms from

https://brainly.com/question/20543449

#SPJ1

Need answer ASAP

Which is the responsibility of a software architect?

A. To gather and analyze requirements

B. To organize team meetings and prepare status reports

C. To code the software using design documents

D. To ensure that the software adheres to technical standards

Answers

Answer:

D. To ensure that the software adheres to technical standards

Explanation:

The responsibility of the software architect is to ensure that all parts of the software system are able to meet the requirements set forth by the project or specifications, in this case, the technical standards.  This is an important piece of the software system because without it, the software system may not perform the necessary functions that it was written to do.

Cheers.

Need answer ASAP

Select the correct answer.
What is the role of a software analyst?
OA.
to prepare project plan
OB.
to provide customer support to stakeholder
O C.
to code and test
O D.
to perform audits

Answers

Answer:

c is the correct awnser ( to code and test )

Answer:

CCCCCCCCCCCCCCCCCCCCC

HELP FAST PLEASE

You find a photo online, taken by someone else, and want to include it in your math presentation. What should you do?

Use the image without concern.
Use the image without concern.

Find a different image to use.
Find a different image to use.

Include a citation with the image.
Include a citation with the image.

Do not include an image.
Do not include an image.

Answers

Answer:

I am not sure can you explain a little more

Answer:

you will need to use the image without consern

You have a screen and a pen, which is an instance of the Turtle class.
What are the initial coordinates of the pen?
(100, 0)
(0,0)
(100, 100)
(0, 100)

Answers

Answer:

(0,0) and (0,100) (I think)

Explanation:

Answer:

(0,0)

Explanation: I got it right

Jennie's folder windows look a little different than the folder windows on her brother's laptop. Why might this be? A. Jennie's brother doesn't have his folder windows turned on. B. The address bar is turned off on one of the computers. C. The folder window viewing options are set differently on the two computers. D. Jennie and her brother don't share files.

Answers

Answer:

C

Explanation:

A is just contradictory to the question, it says they look different but A says its because his folder window isn't on which is unrelated.

The address bar being off doesn't make a big difference like one of the other options

This must be correct as its the most major difference as in the different viewing types the folder windows look significant different and are layed out differently

Them not sharing files is irrelevant to the question

The answer is C

Select the correct answer from each job down menu

Ben is writing an assignment on feasibility study. Help him complete the following sentences

The _____ feasibility Study an evolution of the effectiveness of the product to meet clients requirements. This study requires a board visualization of how the product will operate once it is ______ and ready to use.

Options for the first box are: operational, social, and technical

Options for the second box: researched, installed, and proposed

Answers

Answer:

The Operational feasibility Study an evolution of the effectiveness of the product to meet clients requirements. This study requires a board visualization of how the product will operate once it is installed and ready to use.

Explanation:

A feasibility study is an inquest on the possibility of launching a project. It determines whether a project should be continued or discontinued. The operational feasibility study determines the usability of the project by clients after it is completed.

If the project will not meet the client's requirement, then the project has failed the operational feasibility study and should be discontinued. We also have the technical and economical feasibility studies.

The statement “If a customer buys a dozen eggs, he or she is 80% likely to also purchase milk.” is a conclusion that may be determined from what type of data mining?

Regression Analysis
Clustering Analysis
Association Rule Mining
Anomaly or Outlier Detection

Answers

Answer:

Association Rule Mining

Explanation:

The statement being made is a conclusion that may be determined with Association Rule Mining. This is because this type of data mining focuses on discovering various frequently occurring patterns, correlations, or associations in large sets of data. In this statement, various surveys or experients would have most likely concluded that many individuals that ended up buying a dozen eggs also purchased milk, which would have indicated a pattern in the data set.

The type of data mining from which the given statement concluded is; C: Associate Rule Mining

What is Data Mining?

The given statement made is a conclusion that can be determined with Association Rule Mining. This is because this type of data mining is one that places emphasis on discovering various frequently occurring patterns, correlations, or associations that exists in large sets of data.

Finally, various surveys or experiments would most likely have definitely concluded that many individuals that ended up buying a dozen eggs that is 80% also likely to purchase milk, which would indicate a pattern in the data set.

Read more about Data Mining at; https://brainly.com/question/14846093

click on the _____button to move the selected text in the centre of the page (justify /centre)​

Answers

Answer:

centre

Explanation:

What is brawl stars app

Answers

Answer:

Brawl Stars is a multiplayer online battle arena and third-person hero shooter video game developed and published by the Finnish video game company Supercell.

Answer:

3v3 multiplayer and battle royale made for mobile! Play with friends or solo across a variety of game modes in under three minutes. Unlock and upgrade dozens of Brawlers with powerful Super abilities, Star Powers and Gadgets

Other Questions
Will name the brainliest Which of the following statements about STIs is FALSE?1Some STIs can be deadly; others are uncomfortable.2You cant catch STIs from kissing or touching.3Untreated, gonorrhea can cause infertility in women.4Abstinence is effective protection against STIs. Ecological interactions can be categorized as competition, exploitation, or positive. Describe the types of interactions that fall into these categories, and provide an example of each type of interaction. A gas has a pressure of 1.5 atm at 100K. If the pressure changes to 6 atm, what is the new temperature be? The middle name of the mother of the only U.S. President to ever resign from office. Match each characteristic of good mental and emotional health with its description.Positive Self-Esteem/ Sense of Belonging/Sense of Purpose/Positive Outlook/AutonomyRecognizing ones own value and importance in the world, and having vision and goals which are rewarding.Feeling an emotional attachment to family members, friends, trusted adults and community members.Seeing the good and value in people and situations. Having hope about the future.Having the confidence to make safe and responsible decisions.Feelings of confidence, an understanding that one is a valuable and unique individual, and a healthy self-identity.Match each characteristic of good mental and emotional health with its description. can someone please help me A person who is interested in learning more about the fight or flight response may pursue a career in? help me with this please!!!! 8Drag each label to the correct location on the imageDetermine which details should be included in a summary of the passage and which details should be omitted from the summaryAncient pottery and rockart have been found inthe mountainsThe people who lived in themountains were huntergatherersMany of the early residentslived in cavesSpaniards came to themountains in the midsbdeenth centuryEvidence shows that themountains were inhabitedover 10,000 years agoDetails to include in summaryDetails to omit from summaryThe Guadalupe MountainsNo one knows when the fut people came to the Guadalupe Mountains inforwest Texas, but archaeological evidence Gates back over 10.000 years ago. The earliestinhabitants were her gatherers who fotowed avtale game and ripeningvegetation. They lived in and among the many caves and coves common throughoutthe range. Scattered evidence of their ende, including projectile points basketspottery, and rock art has been found throughout the mountain rangeSince then myfferent groups have moved in and out of the area, Induding theSpanish who arrived by the mid 1500s. There is the evidence of any attempts on thepart to penetrate the Guadalupes. No large scale settlements have been located. Therinfluence was significant, though because they introduced horses into the wea for thebands of Apaches who roamed freely over much of the southwest, horses quicklybecame an asset to their nomadic style. The Mescalero Apaches followed game,much as the earlier peoples had done, and they so harvested the apare for mescafor food and fiber Mescalero is the name given to them by the Sparvh it meansmesc maker. Apoveroasting pits and other remains of escalier campsites arecommon in the mountainsPrior to the mid 1800s, the Guadalupes remained an unchallenged Sanctuary for theMescalero Apaches. But newly established transportation routes, and the end of theCivil War, encouraged droves of pioneers, homesteaders muners and numerous othersto head west. In the mid 1800s, explorers were commissioned to look for possibleemigrant routes to the west. The proposed transcontinental red expected to followone of these routes through these wurveying expedition would never lead to aroad through Guadalupe Pass they did provide the first extensive studies of theGuadalupe regionin 1858 a horse-changing station was constructed near Pine Springs for theButterfield Overland Mel To protect the investments, the stapeline and settlers in theare demanded protection from the moty Several Cavalry troops were ordered inand out of the area that Indian raids and secure settierents along the stage route inthe winter of troopstead by HB Cushing penetrated the Guadalupes anddestroyed two primary Apache camps. These aggressive actions were devastating tothe Mescaleros who were already taongfood shortages within the increasingly mitedand base. They were eventually driven out of the Guadalupes by the late 1800's nearlyof the surg Mescaliero Apaches in the United States were ingon reservationsPermanent series in the Guipes were not common though even after thefinal displacement of the Mescaleros The Butterfield stage route through theGuades was abandoned in less than a year for a more favorable course alongastring of army forts to the south Mosters found the range distinted watersources to run and hospicable. The first permanent ranch house wasconstruded in 1976 byte Rader brothers Now Caled Frole Ranch served asresidence for several as through the years. And, as the only major buildingcomplex in the repon for several decades. served as a community center andrepona post office from 1916-1942. Today, the role Ranch House has been restoredand operates as temReset100 points please help me. The primary structure of a protein is determined byA. The order of amino acids in the protein.B. The amino acid composition.C. The hydrogen bonding that gives the protein three dimensional shape.D. The intertwining of protein molecules to form a functional protein. write -5.6 x 10^-3 in standard form? Stephen was thinking of a number. Stephen adds 2, then divides by 7 to get an answer of 11. What was the original number? Which type of pronoun is used in the following sentence?I think I will buy this sweater.A. demonstrativeB. indefiniteC. interrogativeD. relative Can some on please help me with this assignment An element in a similar period to carbon would beA chlorineB. hydrogenC. fluorineD. magnesium Can I have the one in my car Someone plz help me I beg u plz I need this Ill really appreciate it Can somebody help me out my grade are bad like this find the area of the kite. A. 27 square units B. 40 square units C. 18 square units D. 36 square units