ArcGIS 10: How can I execute the ArcPy code in ArcMap 10?

Discussion created by ScottChang25 on Aug 15, 2012
Latest reply on Aug 15, 2012 by jskinner-esristaff
Hi all,
I just used ArcPy to restart in  learning the Python Programming in ArcGIS 10.  I typed in the following code in the Python Window:  >>>  import arcpy
              >>>  #  this is a comment
              >>>  print ??? hello world???

Please see the attached file.

How can I execute this set of the ArcPY code in ArcMap 10?  Where is/are the button/control keys I can press to get the ArcPy execution started?   Please help and respond.

Scott Chang