Random Python Questions #2

Please look at the below code:

Obviously this is a tuple.

But the below input is NOT a tuple.

This is an integer. Please note that even-though we used the tuple notation ( ), the type is shown as integer and not a tuple.

Is there any easy or simple way to change “tuple2” to a tuple?

Leave a comment

Design a site like this with WordPress.com
Get started