Understanding Tuples In Python
Tuple is sequence just the same way like lists. Otherwise the whole set of elements is enclosed in parentheses instead of square brackets, unlike list. The tuples cannot be changed unlike lists and tuples use parentheses, mean while lists use square brackets.
Tuples can be used for representing what other languages often call records, some related information that belongs together, like your employees record. There is no description of what each of these fields means, but we can guess.
Creating a tuple is as simple as putting different comma-separated values. Optionally you can put these comma-separated values between parentheses also.


























No Comment to " Understanding Tuples In Python "