Programming With Python Practical 7
Programming With Python Practical 7 Question 1 Create a tuple and find the minimum and maximum number from it. minmax.py tup=(1,2,3,5,56,9,8,6,4) largest=tup[0] smallest=tup[0] for i in tup: if(i>largest): largest=i for i in tup: if(i<smallest): smallest=i print("Largest number is :",largest) print("Smallest number is :",smallest) Output Question 2 Write a Python program to find the repeated items […]
Programming With Python Practical 7 Read More »
