hello
I have a problem concerning of changing mark. I don´t understand why it doesn´t work...thought the old_mark is type LIST. It works for one student and not for more (for loop) Pls can you help me?
Thanks Vlady
def change_mark(changed_mark):
for student in changed_mark:
old_mark=changed_mark[student]
position=old_mark.index[old_mark]
old_mark[position] = raw_input('new_mark')
print changed_mark
## approach for one student:
## old_mark=changed_mark['vlado']
## position = old_mark.index('a')
## old_mark[position] = raw_input('new_mark')
## print changed_mark
def main():
changed_mark={'vlado': [u'a'], 'juraj': [u'b'], 'alica': [u'c'], 'peto': [u'a'],
'natalia': [u'b'], 'roman': [u'c'], 'kristina': [u'a'], 'silvia': [u'b']}
change_mark(changed_mark)
if __name__ == '__main__':
main()