starts_with#

caf.toolkit.io.starts_with(s, x)[source]#

Boolean test to see if string s starts with string x or not.

Parameters:
  • s (str) – The string to test

  • x (str) – The string to search for

Returns:

True if s starts with x, else False.

Return type:

Bool