Python 7 Levels, L4, Unit 39, Tuple

Powered By EmbedPress

Homework:

a = (29,45,38,55,7,13,1)
n = a.index(55)
print("Index of 55 is: ",n)
leng = len(a)
print("Length of the list is: ",leng)
for i in a:
    print(i,end = "\t")
print()#output a new line
b = sorted(a)
for i in b:
    print(i,end = "\t")
print()#output a new line

dahan1999

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts