I am not too familiar with the Python language, but the algorithm would be something like this:
1. create a variable for the sums of the number
2. read in how many numbers the user wants to enter (let's call it N)
and then create a for loop:
for N times
read in the next number
increase the sum variable by that number
Hopefully this helps!
The prices went up alot because of taxes
The formatting tool is very important. When one effectively understands the various formatting options available in the word processing software application, one can be able to;
- Make more accessible options for readers through creating and use of headings, highlighting key words or ideas etc.
- Formatting any document helps one to have a presentable and professional document.
- It makes the document easier and a lot interesting to read.
- It helps in Proper punctuation marks and spelling usefulness.
<h3>What is formatting in MS Word?</h3>
Formatting text is simply known as the act of controlling how one wants a particular text to appears in your document. This includes the control of the size, color, etc.
Learn more about word processing software from
brainly.com/question/1022352
Answer:
def SwapMinMax ( myList ):
myList.sort()
myList[0], myList[len(myList)-1] = myList[len(myList)-1], myList[0]
return myList
Explanation:
By sorting the list, you ensure the smallest element will be in the initial position in the list and the largest element will be in the final position of the list.
Using the len method on the list, we can get the length of the list, and we need to subtract 1 to get the maximum element index of the list. Then we simply swap index 0 and the maximum index of the list.
Finally, we return the new sorted list that has swapped the positions of the lowest and highest element values.
Cheers.