Write a program, in python, that checks if the last data item entered appears earlier in the list. Please only use while loops. Once the value of the numbering the last index is known, start at the beginning of the list and compare that number to each of the other values in the list, to find any time the same number appeared again.
Input: sequence of non-negative data, terminated by -1
Output: Answers - "Yes, the last data item appears earlier", "No, the last data item appears earlier", "No Data Provided"
Please: Do not compare last data item entered with itself!
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here