Answer:
def prime_generator(s, e):
for number in range(s, e+1):
if number > 1:
for i in range(2, number):
if (number % i) == 0:
break
else:
print(number)
prime_generator(6,17)
Explanation:
I believe you want to ask the prime numbers between s and e.
- Initialize a for loop that iterates from s to e
- Check if the number is greater than 1. If it is, go inside another for loop that iterates from 2 to that number. If the module of that number to any number in range (from 2 to that number) is equal to 0, this means the number is not a prime number. If the module is not equal to zero, then it is a prime number. Print the number
Answer:
Data can be stored on storage devices.
Explanation:
Network security, Application security and information security are the securities that protect data. Data can be stored on storage devices such as hard disk drives, solid state drives, external hard drives, USB flash drives and SD cards etc. Hard disk drives, floppy disks and tapes store data magnetically. The data can be stored with a device that spins the disk with magnetic coatings and heads has the ability to read and write information in the form of magnetic patterns.
I would say the correct answer is #1.
Answer:
It depends on the structure of the sentence.
Explanation:
This will be shown as grammatical mistake because both the spellings are correct. If we write the word weather instead of the whether, Ms word shows the grammatical mistake. This is because, if we want to write the word whether, we should use or in our sentence. Both of these words are comes together.
Example
I will take a leave whether its raining or not.
In above sentence, both whether and or comes together. If we write weather instead of whether it just show the grammatical mistake in the sentence.
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!