+ 1
tuple initialization
how to initialize tuple, to get input values in it?(to scan values into tuples) like.. #some initialization# input(my_tuple())
5 odpowiedzi
+ 3
x=tuple(input())
print(x)
let input is hello
#output=('h','e','l','l','o')
+ 1
@Maninder Singh
thank you
0
name = (input(), input()) (Dont working at code playground)
0
could u explain me clearly
(I want to take input (few no. of)elements into tuple then the code would be??) with example
0
Henridoh70
if I want to take 8 input elements into tuple, then should I include 8 input functions in 'name'??