Skip to content

Instantly share code, notes, and snippets.

@nnnolan
Created December 5, 2022 02:17
Show Gist options
  • Save nnnolan/204dd72a7919482566ce1a3857fce0d4 to your computer and use it in GitHub Desktop.
Save nnnolan/204dd72a7919482566ce1a3857fce0d4 to your computer and use it in GitHub Desktop.
for i in lines:
print(f"i: {i}") // i: 72-77,20-77
split = i.split(",")
print(f"split: {split}") // split: ['72-77', '20-77']
print(len(split)) // 2
print(type(split)) // <class 'list'>
print(split[0]) // 72-77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment