Alright my friend so filtering will be your answer because if you specifically filter a search it filters to only show what was searched <span />
Answer:
I'd choose A, all of the above.
Reasoning Why:
I'll be taking you on a step to step process on why I inputted the answer.
The <div>, is basically like a container that you can group tougher, why this is great is because you can edit the div using a background-color effecting that group such as the following..
EXAMPLE OF BACKGROUND-COLOR DIV (background-color)
<!DOCTYPE html>
<html>
<head>
<title>Brainly Example | HTML Div</title>
<style>
#byexample{
background-color:red;
/*Example of the Background-color attrib*/
/*You can also use the background-image attrib, however I recommend you checkout W3Schools, on that topic.*/
}
</style>
</head>
<body>
<div id="byexample">
<p>Just some random text to demonstrate.</p>
</div>
</body>
</html>
END OF EXAMPLE
You can also, in the <div> change multiple styles of an element in the div. However, if do want to change the styles of a single element you would need to nest it.
<!DOCTYPE html>
<html>
<head>
<title>Brainly Example | HTML Div</title>
<style>
#byexample #text{
background-color:red;
color:yellow;
}
</style>
</head>
<body>
<div id="byexample">
<p id="text">Just some random text to demonstrate.</p>
</div>
</body>
END OF EXAMPLE
Lastly, you can group elements using divs, as stated in openclassroom (website).
Anyways, I hope this helped!
Happy coding!
Answer:
Explanation:
The following code is written in Pyton and keeps prompting the user for new decimal values, once the user is done it loops through the array getting the highest three values and outputting them to the user.
def atleast_three():
numbers = []
smallest = 0
medium = 0
largest = 0
while True:
numbers.append(float(input("Please enter a decimal value: ")))
answer = input("Add another value? Y/N").lower()
if answer != 'y':
break
else:
continue
for x in numbers:
if x > largest:
largest = x
elif (x > medium) & (x < largest):
medium = x
elif (x > smallest) & (x < medium):
smallest = x
print(str(smallest) + ", " + str(medium) + ", " + str(largest))