1. Engineering
  2. Computer Science
  3. i need both functions written and it must return a...

Question: i need both functions written and it must return a...

Question details

I need both functions written and it must return a string and not print it. Thanks.

Goal: [5pts] Write the function joinedList(n), where n is an integer number. This functions returns (not prints) the list [1,2,..n,n,..2,1] for every n>0 and the list In,ntl,n+2, -1, -1, -2...,n for every mc0. If an invalid input is provided, the function must return a string with an error message (the string error is enough) [5pts] Write the function removePunctuation(ixt), where txt is a string. This function returns a string that replaces every character that is not an alphabet letter into a space. If a string is not provided as an input, the function must return a string with an crror message (the string error is enough). Hint: string method isalpha()

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution