You are viewing a single comment's thread from:

RE: Tuples Datatypes In Python

in STEMGeeks3 years ago

Tuples are useful to return multiple values from a function. There's clever stuff you can do with unpacking them, e.g.

c = (1,2,3)
x,y,z = c

I love that you can loop through all sorts of things in Python.

!LUV