Ump will be assigned to word2
word1[0:3] gets all of the letters from index 0 to index 3 exclusive (that means index 3 is not included)
Character Map ... I hope This Helps
n where n is the number of chances user takes to enter a blank number and n>=1.
<u>Explanation:</u>
The loop starts with a universal condition where it is initialized using a true value. Hence the iteration count goes to 1. The user is asked to enter a number after 1st iteration. If number is a blank number, the loop is terminated, else the loop goes on until the users enters a blank number. Hence the iterations depend on the number of chances taken by the user to enter a blank number. Since the user is going to enter a number at least once, the minimum value of n will be 1.
This is true. Recording relative positions in most cases will reduce total programming time and make it over all more efficient.