My apology for this most inane question. I have very basic python knowledge, and I'm working on it. I need to create a simply list in python that would take a function call with two arguments createList(v,n)
:
So that value would be a string say e
and the next argument would be a number 5
and that would then create a list-
['e','e','e','e','e','e']
Conceptually I understand that e would be at index 0
and 5
would be at index 1, but I have no idea how to actually use the arguments to make the list.
I have searched to try and learn but there is nothing so simply as this. Again, my apology for the inane question, but I am trying!