Ignore:
Timestamp:
09/14/07 13:03:01 (12 years ago)
Author:
jukka
Message:

Removed discussion pages from "What's going on?"-page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ExerciseMaterial.py

    r2019 r2024  
    2626from Material import Material 
    2727from permissions import MODIFY_CONTENT 
     28from random import shuffle 
     29 
    2830import re 
    2931 
     
    99101        all_answers = chapter[1] + chapter[2] 
    100102        extended_answers = [] 
    101         for i, answer in enumerate(all_answers): 
    102             ext_answer = () 
    103             ext_answer.append(answer) 
    104             ext_answer.append(i) 
    105             extended_answers.append(ext_answer) 
    106         import random 
    107         random.shuffle(extended_answers) 
     103        for numerated_answer in enumerate(all_answers): 
     104            extended_answers.append(numerated_answer) 
     105        shuffle(extended_answers) 
    108106        return extended_answers 
    109107 
Note: See TracChangeset for help on using the changeset viewer.