Created
November 14, 2016 23:36
-
-
Save dmmfll/d44d68f9e780d8735fef650b295e9d50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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