User Tools

Site Tools


cs_lang:python:things-to-know:native-datatypes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs_lang:python:things-to-know:native-datatypes [2010/12/13 17:15]
cedric
cs_lang:python:things-to-know:native-datatypes [2011/01/11 14:26] (current)
cedric
Line 37: Line 37:
 </​code>​ </​code>​
  
 +<code python>
 +>>>​ import this
 +>>>​ love = this
 +>>>​ this is love
 +True
 +>>>​ love is True
 +False
 +>>>​ love is False
 +False
 +>>>​ love is not True or False
 +True
 +>>>​ love is not True or False; love is love
 +True
 +True
 +</​code>​
  
 ====== Numbers ====== ====== Numbers ======
cs_lang/python/things-to-know/native-datatypes.txt ยท Last modified: 2011/01/11 14:26 by cedric