Question: List ticket _ nums is read from input, representing data of visitors' ticket numbers. List ticket _ nums has at least three elements. Perform the
List ticketnums is read from input, representing data of visitors' ticket numbers. List ticketnums has at least three elements. Perform the following tasks:
Sort ticketnums inplace.
Reverse ticketnums inplace.
Assign largestvalue with the largest element in ticketnums.
Assign smallestvalue with the smallest element in ticketnums.
Assign ticketdifference with largestvalue minus smallestvalue.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
