Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'receives': 0.04; 'output': 0.05; 'subject:Python': 0.06; 'correct.': 0.07; 'matches': 0.07; 'method.': 0.07; 'false,': 0.09; 'input,': 0.09; 'output,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'statements': 0.09; 'wrote': 0.14; '>in': 0.16; '>the': 0.16; 'exercise:': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'student': 0.16; 'basically': 0.19; 'input': 0.22; '+0000': 0.22; 'junior': 0.24; 'url:home': 0.24; 'header:X-Complaints-To:1': 0.27; 'function': 0.29; "doesn't": 0.30; 'sep': 0.31; 'subject:programs': 0.31; 'writes:': 0.31; 'file': 0.32; 'run': 0.32; 'fri,': 0.33; 'test': 0.35; 'but': 0.35; 'data,': 0.36; 'charset:us-ascii': 0.36; 'list': 0.37; 'expected': 0.38; 'received:76': 0.38; 'to:addr:python- list': 0.38; "couldn't": 0.39; 'embedded': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'subject:online': 0.61; 'john': 0.61; 'simple': 0.61; 'here': 0.66; 'college': 0.70; 'exercise.': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: building an online judge to evaluate Python programs Date: Sun, 22 Sep 2013 12:53:52 -0400 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-21-213.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379868839 news.xs4all.nl 15968 [2001:888:2000:d::a6]:50818 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54591 On Fri, 20 Sep 2013 19:34:02 +0000 (UTC), John Gordon declaimed the following: >In Jabba Laci writes: > >> Let's take this simple exercise: > >> "Write a function that receives a list and decides whether the list is >> sorted or not." > >> Here the output of the function is either True or False, so I cannot >> test it with my current method. > >Make a master input file and a master output file for each exercise. If >the student program's output matches the master output when run from the >master input, then it is correct. As long as the student doesn't have access to the master in/out data, but only examples... Hearsay in my junior year at college was of a senior who couldn't manage to get his program to work -- so he basically embedded lots of output statements which basically wrote the expected output, based on access to the test input data. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/