Answers for "two int inouts python"

1

taking input of n integers in single line python in a list

arr = list(map(int, input().split()))
Posted by: Guest on August-08-2020
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

Code answers related to "two int inouts python"

Python Answers by Framework

Browse Popular Code Answers by Language