Question: Write a function in Python called oddTuples, which takes a tuple as input, and returns a new tuple as output, where every other element of
Write a function in Python called oddTuples, which takes a tuple as input, and returns a new tuple as output, where every other element of the input tuple is copied, starting with the first one. So if test is the tuple ('I', 'am', 'a', 'test', 'tuple'), then evaluating oddTuples on this input would return the tuple ('I', 'a', 'tuple').
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
