You are on page 1of 1

s=input("enter the string")

l1=list(s)

l2=[]

l3=[]

c=0

flag=0

for i in range(0,len(l1)):

if l1[i]!=' ':

l2.append(l1[i])

m=set(l2)

l3=list(m)

n=len(l3)

for i in range(n):

for j in range(0,len(l2)):

if l3[i]==l2[j]:

c+=1

if c==1:

print("not pen")

break

else:

flag+=1

c=0

if flag==len(l3):

print("pen")

You might also like