Course Content
What is Python?
Introduction of Python and Its setup
0/2
Control Statement
Control statements are used to control the flow of execution depending upon the specified condition/logic.
0/4
File Handling
File handling is an important component of any application. Python has multiple functions for creating, reading, updating, and deleting files.
0/2
Examples
Following are the examples of python scripts to try hands-on, you are ready to start your python journey.
0/7
Python
About Lesson

A tuple is a collection of ordered objects. Tuple is an immutable object. Tuple is faster as compared to the list.

In Python, a tuple is created by placing all the elements inside parentheses (), separated by commas (,).

Example:

numbers = ('one', 'two', 'three')
print(numbers)
Function Description
tuple(seq) converts a list into a tuple
min(tuple) returns item from the tuple with a minimum value
max(tuple) returns item from the tuple with maximum value
len(tuple) gives the total length of the tuple
cmp(tuple1, tuple2) compares elements of both tuples