Spring naar hoofdinhoud
Docstrings 0 van 6 activiteiten opgelost
  1. Docstrings Nog niet gelezen
  2. Docstrings: quiz Nog niet gelezen
  3. Bad Lines Nog niet opgelost
  4. Bad Prints Nog niet opgelost
  5. Bad Body Nog niet opgelost
  6. New Docs Nog niet opgelost
Volgende reeks Function flow
Docstrings

Bad Body

Meld je aan om je oplossing in te dienen en feedback te krijgen.

def force_palindrome(a_word: str) -> str: ''' This function creates a palindrome from a phrase by adding the reverse of the phrase to its end. Args: a_word (str): Any string of text Returns: str: a string twice as long with the reverse ''' return a_word + a_word[::-1] print(force_palindrome('AB'))