Computer Science, asked by ZaidAmman, 2 months ago

write a program in python to reverse the tuple  

t1=(11,22,33,44,55)  ​

Answers

Answered by allysia
0

Answer:

The codes are:

___________________________

t1=(11,22,33,44,55)

b=[]

for i in range(1,len(t1)+1):

   b.append(t1[-i])

print(tuple(b))

____________________________

Answered by jai696
2

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

t1 = (11, 22, 33, 44, 55)

t2 = t1[::-1]

print(t2)

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

Similar questions