I'm generally new to Python and its libraries and I was thinking about how I may make a string array with a preset size. It's simple in java yet I was considering how I may do this in python.
So far everything I can consider is
str=['']*size
What's more, somehow when I attempt to call string strategies on it, the debugger gives me a blunder X activity doesn't exist in object tuple.
What's more, in the event that it was in java this is the thing that I would need to do.
String[] ar = new String[size];
Arrays.fill(ar,"");
Kindly help.
This is the Error code:
String[] ar = new String[size];
Arrays.fill(ar,"");
How should I do what I can typically do in Java in Python while as yet keeping the code clean?