<?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: join a text with a list in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213748#M65612</link>
    <description>&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 10:02:15 GMT</pubDate>
    <dc:creator>danielROUFFART1</dc:creator>
    <dc:date>2022-09-19T10:02:15Z</dc:date>
    <item>
      <title>join a text with a list</title>
      <link>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213734#M65607</link>
      <description>&lt;P&gt;try to join a text (an adress) with a list to have at final my list with the adress in fisrt like: paris street 1 paris street 2 etc so i try to do that with this script, but it' dont work .&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;PRE&gt;targetPattern=r"C:\Users\**\AppData\Roaming\Esri\ArcGISPro\Favorites"
target = glob.glob(targetPattern)
print (target)
joiend = [target,Rezo]

for ready in joiend:
# JOIN TARGET
ready = (''.join([''.join(target),r'\Rezo_h@geom06.sde\rezo_h.geom04.REGIE_EAU_POTABLE']))

print (ready)

arcpy.env.workspace = ready
#list adress

fcs = arcpy.ListFeatureClasses("rezo_h.geom04.AEP*")

print (fcs)

jointure = List.insert(ready, fcs)

for ready2 in jointure:
# JOIN TARGET
ready2 = fcs.join(ready)

print ("jointure")
print (ready2)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 07:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213734#M65607</guid>
      <dc:creator>danielROUFFART1</dc:creator>
      <dc:date>2022-09-19T07:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: join a text with a list</title>
      <link>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213735#M65608</link>
      <description>&lt;P&gt;To add an element to the end of a list, use &lt;STRONG&gt;list.append(element)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To add an element to the start of a list use&lt;STRONG&gt; list.insert(0, element)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To add all elements of a list to another list, use &lt;STRONG&gt;list.extend(other_list)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;x = [1, 2, 3]

x.append("a")
print(x)
# [1, 2, 3, 'a']

x.insert(0, "b")
print(x)
# ['b', 1, 2, 3, 'a']

x.extend(["x", "y", "z"])
print(x)
# ['b', 1, 2, 3, 'a', 'x', 'y', 'z']&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Sep 2022 08:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213735#M65608</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-09-19T08:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: join a text with a list</title>
      <link>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213740#M65609</link>
      <description>&lt;P&gt;Thanks for your answer but i want to insert a text before every element of my list to have at final a text like:&lt;/P&gt;&lt;P&gt;x= [1, 2, 3]&lt;/P&gt;&lt;P&gt;y = t&lt;/P&gt;&lt;P&gt;the result be&lt;/P&gt;&lt;P&gt;t1, t2, t3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:06:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213740#M65609</guid>
      <dc:creator>danielROUFFART1</dc:creator>
      <dc:date>2022-09-19T09:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: join a text with a list</title>
      <link>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213742#M65610</link>
      <description>&lt;P&gt;The resultant list would have to become a text list&lt;/P&gt;&lt;LI-CODE lang="python"&gt;x = [1, 2, 3]

y = ["t" + str(i) for i in x]

y
['t1', 't2', 't3']&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213742#M65610</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-09-19T09:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: join a text with a list</title>
      <link>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213745#M65611</link>
      <description>&lt;P&gt;Ah, OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;x = [1, 2, 3]
y = "t"
for i, k in enumerate(x):
    x[i] = y + str(k)
print(x)
# ['t1', 't2', 't3']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:35:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213745#M65611</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-09-19T09:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: join a text with a list</title>
      <link>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213748#M65612</link>
      <description>&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 10:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/join-a-text-with-a-list/m-p/1213748#M65612</guid>
      <dc:creator>danielROUFFART1</dc:creator>
      <dc:date>2022-09-19T10:02:15Z</dc:date>
    </item>
  </channel>
</rss>

