I do not understand the practical use for something that takes a random number of examples (let us call this random number of examples
example_count) where
example_count is an integer such that 1 <=
example_count <= 20 and then takes 20 -
example_count answers to produce 10 lines of output some of which have two examples, some of which have two answers, some of which have an example followed by an answer, and the rest have an answer followed by an example.
I could imagine needing to extract 10 examples and the 10 answers corresponding to those examples and creating 10 lines with the examples on the left and the answers on the right (but with the answers in random order) or creating 10 lines with the answers on the left and the examples on the right (but with the examples in random order), but neither of these match the output you say you want.
Is this a homework assignment? Homework and coursework questions can only be posted in
the Homework & Coursework forum with a completely filled out homework template that is available in the
special homework rules.
If this is homework, please review the
guidelines for posting homework and repost.
If it is not homework, please explain how this project will be used.