Jan-15-2018, 07:09 AM
(This post was last modified: Jan-15-2018, 07:09 AM by Wilson1218.)
(Jan-15-2018, 06:57 AM)Gribouillis Wrote: Ifday1, day2, ...
are global variables, you can do
dayi = globals()['day{}'.format(i)] dayi.extend((yeild1, yeild2))Obviously, a singleday
list would be better. You could define
day = [None, day1, day2, day3, day4, day5, day6, day7] ... day[i].extend((yeild1, yeild2))
The 'day' things are lists, and I cannot use two dimensional lists in this task. I would also like to add that if I could somehow call a list name in a loop that would be great!
Example: Instead of day1, day2, day3 etc I would use something to the effect of day+ count_no