[Solved] Data type when returning multiple values [closed]


I think this is what you might be looking for!

After researching how to find the data-types of variables I’ve come across this:

>>> y = 2,4,6
(2,4,6)
>>> print (y.__class__)
<class 'tuple'>

A tuple is a data-type much like a list in that it stores seperate values, but it is indeed not a list.

Tuples are quite interesting to learn about! I would recommend looking here for more info: http://www.tutorialspoint.com/python/python_tuples.htm

1

solved Data type when returning multiple values [closed]