diff --git a/strings.html b/strings.html index 2e8780d..188fa6d 100755 --- a/strings.html +++ b/strings.html @@ -261,8 +261,8 @@ experience of years. {'password': 'PapayaWhip', 'user': 'pilgrim', 'database': 'master'}
split() string method takes one argument, a delimiter, and splits a string into a list of strings based on the delimiter. Here, the delimiter is an ampersand character, but it could be anything.
-'key=value=foo'.split('='), we would end up with a three-item list ['key', 'value', 'foo'].)
+split() string method has one required argument, a delimiter. The method splits a string into a list of strings based on the delimiter. Here, the delimiter is an ampersand character, but it could be anything.
+split() method is the number of times you want to split. 1 means “only split once,” so the split() method will return a two-item list. (In theory, a value could contain an equals sign too. If you just used 'key=value=foo'.split('='), you would end up with a three-item list ['key', 'value', 'foo'].)
dict() function.