Miscellaneous Python code snippets which I have found useful.
Strings
Split a string into two variables:
# Limits to one split
firstName, lastName = myString.split(' ', 1)
Miscellaneous Python code snippets which I have found useful.
Split a string into two variables:
# Limits to one split
firstName, lastName = myString.split(' ', 1)