
    h                         G d  d          Z edk    rI e             Zdddg dddZ ed	           dZe                    ee          Z ed
e             ede            dZe                    ee          Z	 ed
e             ede	            dddddZ
 ed           dZe                    e
e          Z ed
e             ede            dZe                    e
e          Z ed
e             ede            dddddZ ed           dZe                    ee          Z ed
e             ede            dS dS )c                       e Zd Zd ZdS )Graderc                 f   |                     d          }|                     d          }|dk    s|dk    rwt          |                                                                          t          |                                                                          k    }|rdnd| d}||dS d	d
dS )Ntypecorrect_answermultiple_choice
true_falsez	Correcto.z'Incorrecto. La respuesta correcta era: .)
is_correctfeedbackFuO   Tipo de pregunta no soportado para calificación automática en este prototipo.)getstrstriplower)selfquestion_datastudent_answerquestion_typer   r
   r   s          /home/ubuntu/src/grading.pygrade_questionzGrader.grade_question   s    %))&11&**+;<<-- 	H,1N 	Hn--3355;;==^ATATAZAZA\A\AbAbAdAddJ&0q{{6q`n6q6q6qH",(CCC #(  6G  H  H  H    N)__name__
__module____qualname__r    r   r   r   r      s(        H H H H Hr   r   __main__u!   ¿Cuál es la capital de Francia?r   easy)   BerlínMadrid   ParísRomar   )questionr   
difficultyoptionsr   u2   
--- Calificando pregunta de opción múltiple ---zRespuesta del estudiante: zResultado: r   z4El agua hierve a 100 grados Celsius a nivel del mar.r   	Verdadero)r!   r   r"   r   z0
--- Calificando pregunta de verdadero/falso ---Falsou$   Explica el proceso de fotosíntesis.
open_endedmediumu   [Explicación detallada]zA
--- Calificando pregunta abierta (no soportada en prototipo) ---z,Las plantas usan la luz del sol para crecer.N)r   r   gradermc_questionprintstudent_answer_mc_correctr   result_mc_correctstudent_answer_mc_incorrectresult_mc_incorrecttf_questionstudent_answer_tf_correctresult_tf_correctstudent_answer_tf_incorrectresult_tf_incorrectopen_questionstudent_answer_openresult_openr   r   r   <module>r7      s  H H H H H H H H z 5'VXXF 8!:::" K 
E
?@@@ (--k;TUU	E
B'@
B
BCCC	E
+)
+
+,,,"+ //=XYY	E
D'B
D
DEEE	E
-+
-
-... K%	 K 
E
=>>> +--k;TUU	E
B'@
B
BCCC	E
+)
+
+,,,") //=XYY	E
D'B
D
DEEE	E
-+
-
-... ;4	 M 
E
NOOOH''7JKKK	E
<':
<
<===	E
%
%
%&&&&&k5' 5'r   