Example:
stutter("incredible") ➞ "in... in... incredible?"
stutter("enthusiastic") ➞ "en... en... enthusiastic?"
stutter("outstanding") ➞ "ou... ou... outstanding?"
Code:
def stutter(word):
s = word[:2]
return (2 * (s + '... ')) + word + '?'
print(stutter("incredible"))Output:
in... in... incredible?
0 Comments
Ask Your Queries in the comments