Hello friends, today I will tell you through experts first hand how you can get his first word from any string through python. So let’s go.
Get First Word from String Using Python, Extract First Word from String by Python, How to First Word from String in Python
You have written the code of java below in a very easy way. Through which you can very easily samajh how you can get his first word from string via python.
How to First Word from String in Python?
my_string = "the cat and this dog are in the garden" splitted = my_string.split() first = splitted // the