Skip to main content
Scopes and bodies 0 of 5 activities solved
  1. Scopes and Bodies Not yet read
  2. Scopes and Bodies: quiz Not yet read
  3. Outside Perimeter Not yet solved
  4. Weekend Off Not yet solved
  5. Calling Inside Not yet solved
Next series Docstrings
Scopes and bodies

Calling Inside

Sign in to hand in your solution and get feedback.

def improve_message(a_string: str) -> str: return a_string.replace('dog', 'doggo') def combine_messages(first: str, second: str, third: str) -> str: return first + '\n' + second + '\n' + third first = 'That dog is cute.' second = "I want to pet the dog." third = "I will ask the dog's owner."