I should define a function pad_with_n_chars(s, n, c)
that takes a
string \'s\', an integer \'n\', and a character \'c\' and returns
a string consisting of \'s\'
It looks like you're only looking for pointers, not a complete solution. So here's one:
You can multiply strings in python:
>>> "A" * 4 'AAAA'
Additionally I would use better names, instead of s I'd use text, which is much clearer. Even if your current professor (I suppose you're learning Python in university.) uses such horrible abbreviations.