Skip to content

Exercise: odd tuples #20

@tiagomestreteixeira

Description

@tiagomestreteixeira

Exercise: odd tuples

Write a procedure 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 oddTupleson this input would return the tuple ('I', 'a', 'tuple').


task of #19

Metadata

Metadata

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions