moe
0
Q:

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

>>> first, *rest = input().split()
>>> print(first)
>>> print(*rest)
'''
given_ input = hello my name is bob
hello
['my', 'name', 'is', 'bob']
'''
0
>>> a, b, *rest = range(5)
>>> a, b, rest
(0, 1, [2,3,4])
0
>>> a, *middle, c = range(4)
>>> a, middle, c
(0, [1,2], 3)
0

New to Communities?

Join the community