Python_program 13

Practical Name: Write a python program to perform all tuples operation.


Program :

student=("sakshi","muskan","samrudhi","suhana","mayuri")

marks=(70,60,70,80,90)

print("\nTuple Concenation :",student+marks)

print("Access By Slicing :", student[:-1])

print("Access By Index :",student[0])

print("Length of student-tuple :",len(student))

print("Max of Marks-tuple :",max(marks))

print("Sum of Marks-tuple :",sum(marks))

print("Marks-tuple sorted :",sorted(marks))

 

 

output:-


Post a Comment

Previous Post Next Post