Yup, newbie to both python and the forums. Normally, this would not be a problem with something like C, but I'm kinda confused on how the supposed auto iteration works with python. I'm starting with the calendar module and using 'calendar.monthcalendar(Year, Month)'. Pretty simple as to what this outputs, but I noticed that march of 2013 has an extra week of almost all zeros so its actually (6x7=42). I'd suspect this might happen again in the future, so I want to make sure my output (text or otherwise) is always 6x7 no matter what.
What I want is to overlay the data from 'calendar.monthcalendar(Year, Month)' unto a pre-created variable like so:
Mdata = [0,0,0,0,0,0,0], [0,0,0,0,0,0,0], [0,0,0,0,0,0,0], [0,0,0,0,0,0,0], [0,0,0,0,0,0,0], [0,0,0,0,0,0,0]
..so that when I print/output Mdata, it always has a 6x7 block of data regardless of how many weeks/days are in the month. My intent here is use this data with libreoffice calc to create a mini calender book with many years. I need to get this stuff right before I actually print it. I've some other things in mind I will be using this data for as well.
Currently, I'm seeing errors about tuples or mismatched something or other... The indenting is getting on my nerves as well.
Any suggestions or a good read on WHAT I need to focus on? There's something about python I'm not able to wrap my head around.
Notice I didn't ASK for a direct answer
Any assistance appreciated...