### Where does Python live?
C:\Python27\ArcGIS10.5\python.exe
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe
### Running Python code: Hello World
C:\Python27\ArcGIS10.5\python.exe
C:\Python27\ArcGIS10.5\scripts\ipython.exe
Source
### Python variables
=
mutable
object### Objects and data types
type()
functionhelp()
function Source
=
+=
, -=
, *=
, */
,...==
, >
,>-
,!=
'and
, or
, not
is
infers object identity, not equality; two variables can be equal, but not the same objectx is y
is true, then changing one will change the otherin
checks for membership Source
a = 2; type(a)
-> 'int'b = 2 ** 250; type(b)
--> 'long'True
and False
keywordsbool(0)
vs bool(-23)
bool("")
vs bool('false')