%% Index into Python Tuple
% This example shows how to display elements in a tuple.
% Create a Python® tuple and display the first two elements. MATLAB® returns a tuple.

t = py.tuple({'a','bc',1,2,'def'});
t(1:2)

% Convert to a MATLAB variable.

mt = cell(t)

% Display the second element.

mt{2}

%
% Copyright 2012 The MathWorks, Inc.