Answer:
I think the answer is formulas
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
Here are the main functions of an operating system:
1) Manage the resources of the device
The operating system controls how much of each resource is distributed, and it controls things like the processing unit and memory.
2) Establish a interface for the user of the device
The operating system must classify what the classes of the script/code have to do and what they implement.
3) Service application software
The operating system must service each application that is downloaded onto the device. It must balance it's use of storage between apps.
Answer:
hm not sure man
Explanation:
sorry, give me crown and 5 stars tho
Answer:
a.
++score = score + 1
Explanation:
First you have to understand the increment operator;
There are three possible ways to increment the value of variable by 1.
1. <u>post increment</u>
syntax:
name++
it using in expression first then increase the value by 1.
2. <u>Pre increment</u><u> </u>
syntax:
++name
it increase the value by 1 before it using in expression.
3. simple method
name = name +1
In the question,
option 1: ++score = score + 1
it increase the value of score by 2 because their are two increment is used first for (score + 1) and second ++score.
Therefore, the correct option is a.