syntax

string.split()[0]

example


#string
string = "python is a great language"

#convert string to list and get the first item
first_world = string.split()[0]

#print
print(first_world)

output

python

let's see how we did that

first we split string into a list by using split() method, then we got the first item in the list [0]

English today is not an art to be mastered it's just a tool to use to get a result