Code:
mylist=[];
l=int(input());
i=0;
while(i<l):
m=int(input());
mylist.append(m);
i=i+1;
i=0;
g=0;
while(i<=l-2):
es=mylist[i];
ms=mylist[i+1];
if(es==ms and ms==4):
g=g+1;
break;
i=i+1;
if(g==0):
print(False);
else:
print(True);
Python for beginners: https://www.youtube.com/watch?v=egq7Z...
Python for beginners: https://www.youtube.com/watch?v=egq7Z...
0 Comments:
Post a Comment