DevJourney · code I wrote while learning

split().py

65 B
s = str(input("Enter a string: "))
res = s.split()
print(res[0])