Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: from a module return a class Date: Thu, 17 Mar 2016 17:21:05 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 17 Message-ID: References: NNTP-Posting-Host: panix2.panix.com X-Trace: reader1.panix.com 1458235265 14655 166.84.1.2 (17 Mar 2016 17:21:05 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 17 Mar 2016 17:21:05 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:105122 In kevind0718@gmail.com writes: > ## prompt the user for a User name a& pWord > user_pword = promptUser_PWord() > I get the error > File "H:\dev\eclipse\workspace\genXls\src\genXls\promptUser_PWord.py", line 58 > return user_pword > SyntaxError: 'return' outside function Show us the complete definition of promptUser_PWord(). -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"