You're going to write some code to manage a list of programming languages to learn.
Modify the add-language subroutine, which takes a list of languages and a language name as arguments, to return a list with the new language appended to the end.
Modify the remove-language subroutine to remove the last language from a given list.
Modify the first-language subroutine to return the first language from a given list.
Modify the last-language subroutine to return the last language from a given list.
Modify the get-languages subroutine, which takes a list of languages and a list of numbers for wanted elements, to return a slice of the given list.
Modify the has-language subroutine, which takes a language list and a language name as arguments, to return either True or False indicating if the language exists in the given list.
You're going to write some code to manage a list of programming languages to learn.
Modify the add-language subroutine, which takes a list of languages and a language name as arguments, to return a list with the new language appended to the end.
Modify the remove-language subroutine to remove the last language from a given list.
Modify the first-language subroutine to return the first language from a given list.
Modify the last-language subroutine to return the last language from a given list.
Modify the get-languages subroutine, which takes a list of languages and a list of numbers for wanted elements, to return a slice of the given list.
Modify the has-language subroutine, which takes a language list and a language name as arguments, to return either True or False indicating if the language exists in the given list.