I want to create a nested list in one line. List will be:
a = [["-","-",..."-"],["-","-",..."-"],...["-","-",..."-"]]
Each inner list should have 10 "-"s and the nested list should have 10 lists in it.
I've tried that one but it does not work as i wanted:
a = ["-","-","-","-","-","-","-","-","-","-"]*10
print(a)
Output was:
['-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-']