Hello,
I'm trying to define a function that takes an integer 'n' and a character and returns a string, 'n' characters long. I'm totally lost and I've nothing. I read in a forum "".join might help. But that too is beyond perceivable for me at this moment. I do have a failed attempt for this seemingly easy task. Please advise. Thanks.
def generate_n_chars(n,a):
a = ""
for i in range(n):
a+= str(n)