News

# 1. Create tuple of numbers 1 to 10. # 2. Create single value tuple. # 3. Create one number element tuple and square all the elements in that tuple and # store in new list. # 4. Write a Python ...
Write a python script to store multiple items in a single variable ( Items are “Java” ,“Python”, “SQL”, “C” ) using tuple Write a python program to store only one item using tuple. Write a python ...
In python tuple is an immutable objects means it can not be changed, only we can create. alike list tuple are a sequence but the difference is tuple use parentheses "()" where as list uses ...
But in our program we will represent an interval by means of a tuple and tuples in Python are represented with parentheses. If we have two intervals like (7, 12) and (4, 9), they overlap. We can ...