Answers for "python user input to tuple"

1

python user input to tuple

tuple(map(int,raw_input().split(',')))
Posted by: Guest on May-20-2020
0

python user input to tuple

tuple(int(x.strip()) for x in raw_input().split(','))
Posted by: Guest on May-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language