RosettaCodeData/Task/Sort-three-variables/11l/sort-three-variables.11l

12 lines
254 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
V x = 77444
V y = -12
V z = 0
(x, y, z) = tuple_sorted((x, y, z))
print(x y z)
V xs = lions, tigers, and
V ys = bears, oh my!
V zs = (from the "Wizard of OZ")
(xs, ys, zs) = sorted([xs, ys, zs])
print(xs"\n"ys"\n"zs)