#!/usr/bin/env python
# coding: utf-8

# In[1]:


import os
import arcpy


# In[2]:


os.getcwd()


# In[ ]:


arcpy.env.workspace = os.getcwd()


# In[ ]:


arcpy.env.overwriteOutput = True


# In[3]:


arcpy.Clip_analysis("Congressional districts/tl_2018_us_cd116.shp",
                    "output/select_Kansas.shp",
                    "output/cong_Kansas.shp"
                   )


# In[14]:


def state_districts_116(state):
    arcpy.Clip_analysis(
        "./Congressional districts/tl_2018_us_cd116.shp",
        "./output/select_%s.shp" % state,
        "./output/cong_%s.shp" % state
    )


# In[18]:


state_districts_116('Arkansas')


37558b3f3b091ca9cb3c159fd87b516958e32288
<mask token>

<mask token>
os.getcwd()
<mask token>
arcpy.Clip_analysis('Congressional districts/tl_2018_us_cd116.shp',
    'output/select_Kansas.shp', 'output/cong_Kansas.shp')


def state_districts_116(state):
    arcpy.Clip_analysis('./Congressional districts/tl_2018_us_cd116.shp', 
        './output/select_%s.shp' % state, './output/cong_%s.shp' % state)


state_districts_116('Arkansas')

<mask token>
os.getcwd()
arcpy.env.workspace = os.getcwd()
arcpy.env.overwriteOutput = True
arcpy.Clip_analysis('Congressional districts/tl_2018_us_cd116.shp',
    'output/select_Kansas.shp', 'output/cong_Kansas.shp')


def state_districts_116(state):
    arcpy.Clip_analysis('./Congressional districts/tl_2018_us_cd116.shp', 
        './output/select_%s.shp' % state, './output/cong_%s.shp' % state)


state_districts_116('Arkansas')

import os
import arcpy
os.getcwd()
arcpy.env.workspace = os.getcwd()
arcpy.env.overwriteOutput = True
arcpy.Clip_analysis('Congressional districts/tl_2018_us_cd116.shp',
    'output/select_Kansas.shp', 'output/cong_Kansas.shp')


def state_districts_116(state):
    arcpy.Clip_analysis('./Congressional districts/tl_2018_us_cd116.shp', 
        './output/select_%s.shp' % state, './output/cong_%s.shp' % state)


state_districts_116('Arkansas')

#!/usr/bin/env python
# coding: utf-8

# In[1]:


import os
import arcpy


# In[2]:


os.getcwd()


# In[ ]:


arcpy.env.workspace = os.getcwd()


# In[ ]:


arcpy.env.overwriteOutput = True


# In[3]:


arcpy.Clip_analysis("Congressional districts/tl_2018_us_cd116.shp",
                    "output/select_Kansas.shp",
                    "output/cong_Kansas.shp"
                   )


# In[14]:


def state_districts_116(state):
    arcpy.Clip_analysis(
        "./Congressional districts/tl_2018_us_cd116.shp",
        "./output/select_%s.shp" % state,
        "./output/cong_%s.shp" % state
    )


# In[18]:


state_districts_116('Arkansas')

