Concept
tuple()
This function is used to convert to a tuple.
s = 'word' c = tuple(s) print(c)
('w', 'o', 'r', 'd')
0
0
Updated 2021-07-27
Tags
Python Programming Language
Data Science
tuple()
This function is used to convert to a tuple.
s = 'word' c = tuple(s) print(c)
('w', 'o', 'r', 'd')
0
0
Tags
Python Programming Language
Data Science