Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python not returning true

Reply
Thread Tools

python not returning true

 
 
Ben Finney
Guest
Posts: n/a
 
      02-14-2007
Michael Bentley <(E-Mail Removed)> writes:

> # Something just doesn't seem right in those
> # "Every kiss begins with 'K'" commercials.
>
> >>> 'Every Kiss'.startswith('K')

> False


>>> kisses = ["kiss", "kiss", "kiss", "kiss", "kiss"]
>>> kisses == [kiss for kiss in kisses

... if kiss.startswith("k")]
True

Happy St. Valentine's Day, everyone.

--
\ "Experience is that marvelous thing that enables you to |
`\ recognize a mistake when you make it again." -- Franklin P. |
_o__) Jones |
Ben Finney

 
Reply With Quote
 
 
 
 
Grant Edwards
Guest
Posts: n/a
 
      02-14-2007
On 2007-02-14, Terry Reedy <(E-Mail Removed)> wrote:

>| Wit has nothing to do with it. The fact that you are a Python noob is
>| also irrelevant. Your problem statement was unintelligible, as is your
>| response. What does "pwn" mean?
>
> I believe that it is a misspelling of 'own' used by pvp (person versus
> person, as opposed to person versus monster) gamers to demonstrate their
> in-ness. But perhaps agent-s can enlightenment us further.


Mis-spelling things is witty now? Wow. I've been witty all
these years and didn't even know it...

--
Grant Edwards grante Yow! I'm EXCITED!! I want
at a FLANK STEAK WEEK-END!! I
visi.com think I'm JULIA CHILD!!
 
Reply With Quote
 
 
 
 
Dennis Lee Bieber
Guest
Posts: n/a
 
      02-14-2007
On Wed, 14 Feb 2007 23:05:25 +1100, Ben Finney
<(E-Mail Removed)> declaimed the following in
comp.lang.python:

> Michael Bentley <(E-Mail Removed)> writes:
>
> > # Something just doesn't seem right in those
> > # "Every kiss begins with 'K'" commercials.
> >
> > >>> 'Every Kiss'.startswith('K')

> > False

>
> >>> kisses = ["kiss", "kiss", "kiss", "kiss", "kiss"]
> >>> kisses == [kiss for kiss in kisses

> ... if kiss.startswith("k")]
> True
>
> Happy St. Valentine's Day, everyone.


Technically, it is not the initial "K", but the store name "Kay"

{Does that imply a hick drawl of "Kayiss"?}
--
Wulfraed Dennis Lee Bieber KD6MOG
http://www.velocityreviews.com/forums/(E-Mail Removed) (E-Mail Removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (E-Mail Removed))
HTTP://www.bestiaria.com/
 
Reply With Quote
 
Terry Reedy
Guest
Posts: n/a
 
      02-15-2007

"John Machin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
|| > | On Feb 14, 5:45 pm, "agent-s" <(E-Mail Removed)> wrote:
| > | > btw Steven you are so witty I hope to one day pwn noobs on
newsgroups
| > | > too.
| >
| > Sorry, but you are 'pwning' yourself here
|
| And the referent of "you" would be .....?

agent-s, as I though was obvious.



 
Reply With Quote
 
agent-s
Guest
Posts: n/a
 
      02-23-2007
Wow. I didn't realize you guys took this so seriously.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[False,True] and [True,True] --> [True, True]????? bdb112 Python 45 04-29-2009 02:35 AM
irb: 1 & 1 => 1, not true huh? I thought 1 & 1 => true Peter Alvin Ruby 4 09-29-2008 08:08 AM
RE: Page.User.IsInRole True for AD group in VS.NET not true on samemachine once published wildman@noclient.net ASP .Net 0 03-10-2008 08:54 PM
"require" in unit test not returning true or false Jesper Rønn-Jensen Ruby 5 07-23-2007 08:39 PM
C and C++ are interoperable languages? True or Not True? Chip C++ 6 01-08-2005 11:10 PM



Advertisments