Advertisement
hussamneo

Untitled

Feb 17th, 2018
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. mark = 0
  2.  
  3. teacherAnswers = {
  4.  
  5. 1: "a",
  6. 2: "b",
  7. 3: "c"
  8.  
  9. }
  10.  
  11. studentAnswers = {
  12.  
  13. 1: "c",
  14. 2: "b"
  15. 3: "c"
  16.  
  17. }
  18.  
  19. # am trying to compare the teacher with student answers
  20. # and for each correct answer i want the mark to increase by one
  21. # the overall should be over 3
  22. # i know this might work with the for loop
  23. # but i don't know how
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement