0% found this document useful (0 votes)
3 views1 page

Python Tuple Min, Max, and Repeats

The document contains two practical exercises in Python programming. The first exercise demonstrates how to create a tuple and find its minimum and maximum values. The second exercise shows how to identify and print repeated items in a tuple.

Uploaded by

Faiz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Python Tuple Min, Max, and Repeats

The document contains two practical exercises in Python programming. The first exercise demonstrates how to create a tuple and find its minimum and maximum values. The second exercise shows how to identify and print repeated items in a tuple.

Uploaded by

Faiz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PRACTICAL NO – 7

Q1) Write a tuple and find the minimum and maximum number ?

# Name : Shaikh Mohamed Faiz Shahid


#Enrollment no : 2005690134

t1 = (10,20,30,40,50,60,70,80)
t2=max(t1)
t3=min(t1)
print("Maximum number :",t2)
print("Minimum number :",t3)

Q2) write a python program to find the repeated items in tuple


?

# Name : Shaikh Mohamed Faiz Shahid


#Enrollment no : 2005690134

t1=(10,20,30,40,10,30)
printed=[]
for i in t1:
if [Link](i)>1:
if i not in printed:
print(i)
[Link](i)

You might also like