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)

Related pages