Below is the snippet from my script which is working fine
if system is 'Conferences': assignedtomatrix[system]['Third'] = 'name'
I have to now introduce one more loop checking, but could not find a way to do this.
I have tried:
if system is 'Conferences': person = ['person1', 'person2', 'person3'] community = communities [:] if community is 'Arts': person = 'person1' if community is 'Book': person = 'person2' if community is 'Learning': person = 'person3' assignedtomatrix[system]['Third'] = person
But I think this is not entering into If loop for community.