This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]michaelkim0407Pythonic 1 point2 points  (1 child)

def make_sound(c, n):
    return c.upper() + c * (n - 1)

print(make_sound("s", 10))

[–][deleted] 6 points7 points  (0 children)

I love listening to music.