Newbie question
cherokee30114 at my-deja.com
cherokee30114 at my-deja.com
Fri Sep 8 14:13:22 EDT 2000
More information about the Python-list mailing list
Fri Sep 8 14:13:22 EDT 2000
- Previous message (by thread): Newbie question
- Next message (by thread): Newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am very frustrated about this... I am a C++ programmer by trade: How do you test for string equality in PYTHON? I tried: myarg = repr(mytup[0]) >>> print myarg 'A' >>> if myarg == 'A': ... print "ok" ... else: ... print "bad" ... bad I can't find anything in the string library like strcmp() either..HELP! Sent via Deja.com http://www.deja.com/ Before you buy.
- Previous message (by thread): Newbie question
- Next message (by thread): Newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list