What are some of the challenges that could arise from setting up a file management system on a computer
True, but it won't be in the same namespace. See below:
>>> import time
>>> print time.time()
1510180694.04
>>> quit()
By doing a straight import I have to reference the namespace time and the function time. (Yeh, I should have picked a different example, but I couldn't think of any)
>>> from time import time
>>> time()
1510180718.76834
>>> quit()
By doing the from, I import the time function into the __main__ namespace so I don't need to reference a name space when I call it.
Answer:
Complete the code using:
for (i = 0; i <SCORES_SIZE-1; i++) {
bonus_Scores[i] = bonus_Scores[i] + bonus_Scores[i+1];
}
Explanation:
This iterates through all elements of the list except the last
for (i = 0; i <SCORES_SIZE-1; i++) {
This adds the current element to the next, the result is saved in the current list element
bonus_Scores[i] = bonus_Scores[i] + bonus_Scores[i+1];
}
<em>See attachment for complete code</em>