DevJourney · code I wrote while learning
1s = str(input("Enter a string: ")) 2res = s.split() 3print(res[0])