> If my student has plagiarised - I need to know.

Could you ask him(?) to explain some of the more "interesting"
features?
Maybe how he came up with the variable names? It is possible that
he/she has come up with it themselves since its not really a great
version - a very strange mix of OOP and procedural styles etc.

Or ask how he/she would modify it to some other criteria - in other
words do the actually understand it? If they wrote it they should...
Actually thats quite a good thing to do with all the students!

   def __init__(self, low, high):   #whrandom number is made here
      self.ro = whrandom()

Why ro for instance? - random object presumably, but does the student
know that?

   def number(self):
      return self.num

And why this apparently useless method? Why not just access self.num?


#this part evaluates the users guess
def evaluate_ans(guess_str, whrandom, low_str, high_str, guess_left, \
                 guess_eval_str, yg_label):

And what are all these parameters for? Are there ways they could have
cut down the number?

etc etc...

And if they do understand it and know how to modify it then even if
they did copy it they did the assignment and understood the code.
Software reuse is not necessarily an evil to be stifled...

Just some thoughts.

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to