<?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 What does the \newline escape sequence mean in python? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-newline-escape-sequence-mean-in/m-p/1183850#M7498</link>
    <description>&lt;P&gt;In the Python manual, I found the sequence&lt;STRONG&gt; \newline&lt;/STRONG&gt;&amp;nbsp;in a list of escape sequences. This article from &lt;A href="https://www.scaler.com/topics/escape-sequence-in-python/" target="_self"&gt;Scaler&lt;/A&gt; demonstrated to me that it does not represent itself but is transformed into another character or set of characters that, like newline, may be difficult or impossible to describe directly.&lt;/P&gt;&lt;P&gt;I'm curious how and why it's used. This appears to be translated as &lt;STRONG&gt;'n' + 'ewline'&lt;/STRONG&gt; in my interpreter:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'\newline'&lt;/SPAN&gt;)

ewline&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Jul 2022 12:38:59 GMT</pubDate>
    <dc:creator>MubashshirHasan</dc:creator>
    <dc:date>2022-07-29T12:38:59Z</dc:date>
    <item>
      <title>What does the \newline escape sequence mean in python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-newline-escape-sequence-mean-in/m-p/1183850#M7498</link>
      <description>&lt;P&gt;In the Python manual, I found the sequence&lt;STRONG&gt; \newline&lt;/STRONG&gt;&amp;nbsp;in a list of escape sequences. This article from &lt;A href="https://www.scaler.com/topics/escape-sequence-in-python/" target="_self"&gt;Scaler&lt;/A&gt; demonstrated to me that it does not represent itself but is transformed into another character or set of characters that, like newline, may be difficult or impossible to describe directly.&lt;/P&gt;&lt;P&gt;I'm curious how and why it's used. This appears to be translated as &lt;STRONG&gt;'n' + 'ewline'&lt;/STRONG&gt; in my interpreter:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'\newline'&lt;/SPAN&gt;)

ewline&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jul 2022 12:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-newline-escape-sequence-mean-in/m-p/1183850#M7498</guid>
      <dc:creator>MubashshirHasan</dc:creator>
      <dc:date>2022-07-29T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: What does the \newline escape sequence mean in python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-newline-escape-sequence-mean-in/m-p/1183903#M7500</link>
      <description>&lt;P&gt;It does almost what it says it does.&amp;nbsp; The \n is the escape sequence for printing a new line in a text string.&amp;nbsp; The rest of the string is what is to be printed&lt;/P&gt;&lt;P&gt;print ("\newline')&lt;/P&gt;&lt;PRE&gt;ewline&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Lets not forget the venerable \r for carriage return.&amp;nbsp; There are a few more shown here,&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Escape_character" target="_blank"&gt;https://en.wikipedia.org/wiki/Escape_character&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 04:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-newline-escape-sequence-mean-in/m-p/1183903#M7500</guid>
      <dc:creator>DavidAnderson_1701</dc:creator>
      <dc:date>2022-06-18T04:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: What does the \newline escape sequence mean in python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-newline-escape-sequence-mean-in/m-p/1183938#M7501</link>
      <description>&lt;P&gt;A backslash means the next character is special.&lt;/P&gt;&lt;P&gt;\n means newline&lt;/P&gt;&lt;P&gt;\t means tab&lt;/P&gt;&lt;P&gt;\\ means \ so for example, "C:\\Program Files" will be interpreted to mean "C:\Program Files".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 15:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-the-newline-escape-sequence-mean-in/m-p/1183938#M7501</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-06-17T15:56:42Z</dc:date>
    </item>
  </channel>
</rss>

