Skip to content

Instantly share code, notes, and snippets.

@dmmfll
Created November 14, 2016 23:36
Show Gist options
  • Save dmmfll/d44d68f9e780d8735fef650b295e9d50 to your computer and use it in GitHub Desktop.
Save dmmfll/d44d68f9e780d8735fef650b295e9d50 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# coding: utf-8
# In[ ]:
ows = 'john\nplastic\njoe\nmary\nismael'
split_data = data.split("\n")
# print(split_data[0:5])
for row in split_data[0:5]:
print(row)
# In[3]:
rows = "john\nplastic\njoe\nmary\nismael"
split_data = rows.split("\n")
print(split_data)
# In[5]:
rows = "john\nplastic\njoe\nmary\nismael"
split_data = rows.split()
print(split_data)
# In[7]:
rows = "john:plastic:joe:mary:ismael"
split_data = rows.split('c')
print(split_data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment