Answers for "name, *line = input().split()what is *"

0

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

>>> first, *rest = input().split()
>>> print(first)
>>> print(*rest)
'''
given_ input = hello my name is bob
hello
['my', 'name', 'is', 'bob']
'''
Posted by: Guest on July-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language