How to create a 2d array to exclude certain directories from the program
<p>I am new to python and I need a quick help with the below problem. Any help or suggestion is much appreciated.</p>

<p>I have a python script which purges logs from a directory called <code>XYZ</code>. The directory <code>XYZ</code> has sub directories for different applications and then the logs in it. e.g: <code>/XYZ/host1/syslog.log</code>
At present the python script takes the purge date with the <code>-p</code> option provided to it at the time to execution.</p>

<p>I want to change the purge date for one specific directory under <code>XYZ</code>, without changing the location of the directory.
Someone told me this can be done with creating an exception <code>2d array</code> to provide a host with <code># of days</code> and in case a host is not present in that array then purge days is taken from the <code>-p</code> option.</p>

<p>Can someone please help me with creating this array.</p>

<p>Thanks in advance!</p>
