PWP Practical 7 PDF
PWP Practical 7 PDF
Ans:
A tuple without any elements is defined as an empty tuple.
Syntax:
Tup=()
Tup1=(1,2,3,4,5)
Tup2=Tup1[2:5]
print(“Elements copied”, Tup2)
Practical No. 7
Output:
>>> %Run exp7_1.py
Maximum Number is= 50
Minimum Number is= 10
Output:
>>> %Run exp7_2.py
Repeated items are: [1, 2]
Practical No. 7
Output:
>>> %Run exp7_3.py
Enter a number: 130
['one', 'three', 'zero']