get string after charchater python code example
Example 1: python return number of characters in string
# Example usage:
your_string = "Example usage"
len(your_string)
--> 13
Example 2: python extract all characters from string before a character
s1 = "Username: How are you today?"
>>> s1.split(':')
['Username', ' How are you today?']
>>> s1.split(':')[0]
'Username'