question about True values

John Salerno johnjsal at NOSPAMgmail.com
Wed Oct 25 14:56:12 EDT 2006


I'm a little confused. Why doesn't s evaluate to True in the first part, 
  but it does in the second? Is the first statement something different?

 >>> s = 'hello'
 >>> s == True
False
 >>> if s:
	print 'hi'

	
hi
 >>>

Thanks.



More information about the Python-list mailing list