subject

Write a recursive function reverseList(lst) that given a list lst, returns a new list with the order of elements in lst reversed. For example, list reverseList(['a','b','c']) should be return ['c','b','a']. Hint: Take the first element, reverse the remaining list and put the first element to the end of the new list and return.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Which is a false statement considering copyright law? a. when people upload something to the internet they automatically receive a copyright for the work b. the work does not have to contain a copyright notice to be considered having a copyright c. copyright is legal term describing rights given to the creators for literary and artistic works d. personal pictures are always covered by copyrights
Answers: 1
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
You know the right answer?
Write a recursive function reverseList(lst) that given a list lst, returns a new list with the order...
Questions
question
Mathematics, 30.10.2020 07:30
question
History, 30.10.2020 07:30
question
History, 30.10.2020 07:30
Questions on the website: 13722367