Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'yet.': 0.03; 'main()': 0.07; 'cc:addr:python-list': 0.09; 'python': 0.10; 'def': 0.13; 'assignment.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'main():': 0.16; 'subject:assistance': 0.16; 'validation.': 0.16; 'wrote:': 0.16; 'first.': 0.18; 'hacking': 0.18; 'hack': 0.18; 'input': 0.18; '>>>': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; "aren't": 0.22; 'sorry,': 0.22; 'trying': 0.22; 'bit': 0.23; 'header:In-Reply- To:1': 0.24; 'mon,': 0.24; 'sort': 0.25; 'message- id:@mail.gmail.com': 0.27; 'idea': 0.28; 'arithmetic': 0.29; 'that.': 0.30; 'code': 0.30; 'probably': 0.31; "can't": 0.32; 'getting': 0.33; 'michael': 0.33; "he's": 0.33; 'that,': 0.34; 'received:google.com': 0.35; 'next': 0.35; 'done': 0.35; 'level': 0.35; 'expected': 0.35; 'but': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'johnson': 0.37; 'skip:p 20': 0.38; 'someone': 0.38; 'where': 0.40; 'ever': 0.60; 'your': 0.60; 'subject:Need': 0.61; 'email addr:gmail.com': 0.62; 'course': 0.62; 'more.': 0.63; '20,': 0.66; 'fulfill': 0.66; 'judge': 0.66; 'dangerous': 0.70; 'jul': 0.72; '100': 0.79; 'break.': 0.84; 'chrisa': 0.84; 'name=': 0.84; 'to:none': 0.91; 'rick': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=180PGd0dGrxsrqGWxhF5XIPlZdeA2OoOyVPMKxNguQA=; b=FxwkjbqtO9MtxKZLTd35PXskYpZdvmGJycadLjC/3bAKepgzQuUD7i9mjdTUoTQhJr r2RGsB6Hw515TBIShnhHAmLBgEyMZANJ4B2fHVREOsMtJoBtJQ4+LEImt2czngV6/ka3 wSa4MALmVd8yP6gEecqfbAYoOjbAYNik69SWgmZ8N1lRbq+hk/Kn4C/MmDpGOZrU1h7Q JER2XdheeJz+MT45/gWk8lHD1bTrufR/bzBmA580QfUXuxiEDdXCm7x6+A9wtUmuHUue DdJANNichrpL9Ff3Fs6sRR1nR257697v1v1z3U772parL4UPsOjorPePWtS/LrTz4rSp kGiA== MIME-Version: 1.0 X-Received: by 10.50.136.194 with SMTP id qc2mr11563331igb.6.1437369925056; Sun, 19 Jul 2015 22:25:25 -0700 (PDT) In-Reply-To: <55AC8447.80906@gmail.com> References: <225d4ac6-3b88-4844-805b-b4b00cd62ef4@googlegroups.com> <99ad55c0-0c1c-4442-9db7-c762f17cde04@googlegroups.com> <219b1f31-d34f-4ec2-846c-96ddd7170058@googlegroups.com> <55AC8447.80906@gmail.com> Date: Mon, 20 Jul 2015 15:25:24 +1000 Subject: Re: Need assistance From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 1437369933 news.xs4all.nl 2962 [2001:888:2000:d::a6]:38724 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 2784959975 X-Received-Bytes: 4974 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!lightspeed.eweka.nl!lightspeed.eweka.nl!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:94207 On Mon, Jul 20, 2015 at 3:16 PM, Michael Torrie wrote: > On 07/19/2015 06:21 PM, Rick Johnson wrote: >> On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, craig...@gmail.com wrote: >>> def main(): >>> name= input('Enter your full name: ') >>> split=name.split() >>> Full_name=split[2],split[0], split[1] >>> print(Full_name[2],',', Full_name[0], Full_name[1]) >>> >>> main() >> >> Sorry, but this code is no where near done yet. What happens >> when the user enters invalid input? *BANG* > > Give the guy a break. He's just barely been exposed to Python and he's > simply trying to fulfill the assignment's requirements. Nothing more. > Judge the professor and course all you want. But for a 100 level course > just getting people to get any sort of input is a challenge. Once he's > mastered that, then he can learn about input validation. You're > probably someone who can't remember ever not knowing how to program. > But most people aren't like that. Got to learn a little bit at a time, > even if it's dangerous at the very first. It's not like he's going to be > expected to hack kernel code for his next assignment. Rick's idea of scope creep probably *does* include kernel hacking as part of Arithmetic 101. ChrisA