I would like to know how I add the values for a few arrays which start with "yoyo" in one matrix.
The code:
yoyo_asd=('a','b','c')
yoyo_bsd=('asd','111','222')
matrix=[]
I am trying with something like this but nothing..
for vars in dir():
if vars.startswith("yoyo"):
matrix.append([vars])
This is my goal:
matrix = [
['a','b','c'],
['asd','111','222'],
]