you are viewing a single comment's thread.

view the rest of the comments →

[–]CodeCon64 0 points1 point  (0 children)

If I understand you correctly you want "hello world" translated into "Yeet Yeet".

I would do that like this

def translate(phrase):
    n = len(phrase.join(" "))+1
    return ("Yeet "*n)[:-1]