Question: 7)Write a short Python function, first and last(data), that takes a sequence of one or more strings, and returns the first and last string lexicographically,

7)Write a short Python function, first and last(data), that takes a sequence of one or more strings, and returns the first and last string lexicographically, in the form of a tuple of length two. Do not any built-in functions for your comparisons/determination of string ordering
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
