Need assistance

Michael Torrie torriem at
Mon Jul 20 07:16:55 CEST 2015

On 07/19/2015 06:21 PM, Rick Johnson wrote:
> On Sunday, July 19, 2015 at 6:07:14 PM UTC-5, craig... at 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.

More information about the Python-list mailing list