KnowledgeBoat Logo

Computer Science

How do you create the following tuples?

(a) (4, 5, 6)

(b) (-2, 1, 3)

(c) (-9, -8, -7, -6, -5)

(d) (-9, -10, -11, -12)

(e) (0, 1, 2)

Python Tuples

4 Likes

Answer

(a) tup = (4, 5, 6)

(b) tup = (-2, 1, 3)

(c) tup = (-9, -8, -7, -6, -5)

(d) tup = (-9, -10, -11, -12)

(e) tup = (0, 1, 2)

Answered By

3 Likes


Related Questions