<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python programming help!! in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78086#M6282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For my calculation would it not be written as : POPSQMile = ([POPSQ / POPULATION])&amp;nbsp; Where POPSQMile is the answer field and POPSQ and POPULATION are the calculating fields.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2012 16:21:22 GMT</pubDate>
    <dc:creator>MichelleCouden1</dc:creator>
    <dc:date>2012-04-18T16:21:22Z</dc:date>
    <item>
      <title>Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78084#M6280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was wondering if anyone could please help me write a python script for doing field calculation. I know I can use the field calculator, but I need a python program to do the same thing. Calculate two fields into one field. For Example : Population per square mile into a answer field. Please help!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 14:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78084#M6280</guid>
      <dc:creator>MichelleCouden1</dc:creator>
      <dc:date>2012-04-18T14:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78085#M6281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can either use the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Calculate_Field/00170000004m000000/"&gt;Calculate Field&lt;/A&gt;&lt;SPAN&gt; geoprocessing tool (basically, the field calculator in a script - one line of Python code), or use an &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000003m000000"&gt;UpdateCursor&lt;/A&gt;&lt;SPAN&gt; (more complicated - several lines in your Python code).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 14:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78085#M6281</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-04-18T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78086#M6282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For my calculation would it not be written as : POPSQMile = ([POPSQ / POPULATION])&amp;nbsp; Where POPSQMile is the answer field and POPSQ and POPULATION are the calculating fields.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 16:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78086#M6282</guid>
      <dc:creator>MichelleCouden1</dc:creator>
      <dc:date>2012-04-18T16:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78087#M6283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was wondering if anyone could please help me write a python script for doing field calculation. I know I can use the field calculator, but I need a python program to do the same thing. Calculate two fields into one field. For Example : Population per square mile into a answer field. Please help!!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stop posting the same question over and over.. we get it you need help.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you were to read your original post it was replied to with a viable "program"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;no one likes overly needy people who keep demanding help when help has already been provided&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 16:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78087#M6283</guid>
      <dc:creator>AnthonyTimpson2</dc:creator>
      <dc:date>2012-04-18T16:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78088#M6284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please don't be mean. If you don't want to help me then let someone else. The program provided did not answer my question.&amp;nbsp; I am new to Python programming and I was seeking help for this program I have to write. I have posted the calculation to see if that is what will work. It is the phrasing and proper use of parenthese and brackets that I need help with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 16:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78088#M6284</guid>
      <dc:creator>MichelleCouden1</dc:creator>
      <dc:date>2012-04-18T16:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78089#M6285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you've got to isolate the field names with [brackets] and you don't need to include the POPQSMile =&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am pretty sure you just need to put &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;expression = "[POPULATION] / [SQMILE]"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 16:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78089#M6285</guid>
      <dc:creator>RyanForbes1</dc:creator>
      <dc:date>2012-04-18T16:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78090#M6286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!! That what I was getting wrong. So what do parentheses and the quotation marks do. In the calculation you wrote the quotations tell the program to run that calculation as one. Is that right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 16:55:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78090#M6286</guid>
      <dc:creator>MichelleCouden1</dc:creator>
      <dc:date>2012-04-18T16:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78091#M6287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone explain to me about Quotation marks, parentheses, and brackets in the python language. What do they do and what do they stand for. Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 13:33:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78091#M6287</guid>
      <dc:creator>MichelleCouden1</dc:creator>
      <dc:date>2012-04-19T13:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python programming help!!</title>
      <link>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78092#M6288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First, you need to decide if you are using the field calculator or actually writing a full Python script. The answer above (expression = "[POPULATION] / [SQMILE]") would go into a full script, if you choose to write one. Or, much easier, you could just use the expression [POPULATION] / [SQMILE] in the expression box of the field calculator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quotes group together pieces of text. Square brackets indicate fields. You should really start &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_is_Python/002z00000001000000/"&gt;here &lt;/A&gt;&lt;SPAN&gt;and go from there if you are determined to learn Python. It's a fairly simple language, but it still takes time to learn.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 14:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-programming-help/m-p/78092#M6288</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-04-19T14:04:05Z</dc:date>
    </item>
  </channel>
</rss>

