Answer the question
In order to leave comments, you need to log in
Working with tuple how to do?
Good evening, I ran into such a problem
, I have a values variable, of the tuple type, when I try to transfer a string to it, it is divided into letters.
Code:
values = ('SimpleText')
values = tuple( values )
print( values )
('S', 'i', 'm', 'p', 'l', 'e', 'T', 'e', 'x', 't')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question