Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'method.': 0.07; 'method,': 0.09; 'cc:addr:python-list': 0.11; '-tkc': 0.16; 'does,': 0.16; 'false:': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'itself,': 0.16; 'mylist': 0.16; 'subtle.': 0.16; 'true:': 0.16; 'wrote:': 0.18; 'help.': 0.21; 'cc:addr:python.org': 0.22; 'print': 0.22; 'choices': 0.24; 'refers': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'asking': 0.27; 'header:In-Reply- To:1': 0.27; 'tried': 0.27; 'testing': 0.29; 'go.': 0.31; 'third': 0.33; 'something': 0.35; 'really': 0.36; 'method': 0.36; 'charset :us-ascii': 0.36; 'should': 0.36; 'two': 0.37; 'sure': 0.39; 'first': 0.61; 'between': 0.67; 'subject:have': 0.80; 'received:50.22': 0.84; 'subject:times': 0.84 Date: Sat, 30 Aug 2014 13:48:09 -0500 From: Tim Chase To: Seymore4Head Subject: Re: I have tried and errored a reasonable amount of times In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com Cc: python-list@python.org 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409424597 news.xs4all.nl 2875 [2001:888:2000:d::a6]:53527 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77323 On 2014-08-30 14:27, Seymore4Head wrote: > I really tried to get this without asking for help. > > mylist = ["The", "earth", "Revolves", "around", "Sun"] > print (mylist) > for e in mylist: > > # one of these two choices should print something. Since neither > does, I am missing something subtle. > > if e[0].isupper == False: > print ("False") > if e[0].isupper == True: > print ("True") > > I am sure in the first , third and fifth choices should be true. > Right now, I am just testing the first letter of each word. There's a difference between e[0].isupper which refers to the method itself, and e[0].isupper() which then calls that method. Call the method, and you should be good to go. -tkc