Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

name, *line = input().split()

>>> first, *rest = input().split()
>>> print(first)
>>> print(*rest)
'''
given_ input = hello my name is bob
hello
['my', 'name', 'is', 'bob']
'''
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
1+2 =