Answer:
The program to this question can be described as follows:
Program:
def ilovepython(): #defining a method
for i in range(3): #defining a loop that print messasge three times
print('I love Python')#print messasge
ilovepython() #calling the method
Output:
I love Python
I love Python
I love Python
Explanation:
Description of the python program can be described as follows:
- In the above Python program, a method "ilovepython" is defined, inside the method a for loop is used, inside the loop print method is used, that print the message "I love Python".
- In python for loop is used to iterate over series and we can execute a set of statements with the loop, tuple, series, once for each element in the list.
If you want to answer easy questions click on answer at the bottom of your screen and then look at the top and click on school and choose a school (for example choose middle school because people have posted way questions) :)
Answer:
Operating systems now use networks to make peer-to-peer connections and also connections to servers for access to file systems and print servers. The three most widely used operating systems are MS-DOS, Microsoft Windows and UNIX.
Explanation:
Answer:
1 PROCESSOR :
(1 × 2.56 × 10^9) + (12 × 1.28 × 10^9) + (5 × 2.56 × 10^8) / 2 GHz = 9.6 s
2 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×2 + (5 × 2.56 × 10^8) / 2 GHz = 7.04 s
Speed -up is 1.36
4 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×4 + (5 × 2.56 × 10^8) / 2 GHz = 3.84 s
Speed -up is 2.5
5 PROCESSORS :
(1×2.56×10^9)+(12×1.28×10^9)/0.7×8 + (5 × 2.56 × 10^8) / 2 GHz = 2.24 s
Speed -up is 4.29
Explanation:
The following formula is used in this answer:
EXECUTION TIME = CLOCK CYCLES / CLOCK RATE
Execution Time is equal to the clock cycle per clock rate