Answers for "how to input a tuple from user in python"

0

python create tuple from input

t = input()
a = tuple(int(x) for x in t.split())
#view this tuple
print(a)
Posted by: Guest on May-20-2020
1

python user input to tuple

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

Code answers related to "how to input a tuple from user in python"

Python Answers by Framework

Browse Popular Code Answers by Language