Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

EX NO :

DATE:

AIM:

ALGORITHM:
OUTPUT:
PROGRAM:

n=int(input("enter the size of list:"))


l=[]
for i in range(n):
e=input()
l.append(e)
t=tuple(l)
half=n//2
print(t[:half],"the first half of t")
print(t[half:],"the second half of t")

RESULT:

You might also like