Skip to content

Instantly share code, notes, and snippets.

@lmaresz
Created September 15, 2015 17:56
Show Gist options
  • Save lmaresz/41fef1b338ae99560fb5 to your computer and use it in GitHub Desktop.
Save lmaresz/41fef1b338ae99560fb5 to your computer and use it in GitHub Desktop.
f=open('program.txt','r')
A=[]
for x in f:
A.append(x.strip())
del A[0]
sorsz=input('Kérek egy utasítássor számot: ')
sorsz=int(sorsz)
for i in range(len(A[sorsz])-1):
if A[sorsz][i]+A[sorsz][i+1] == "ED" or A[sorsz][i]+A[sorsz][i+1] == "DE" or A[sorsz][i]+A[sorsz][i+1] == "KN" or A[sorsz][i]+A[sorsz][i+1] == "NK":
print ("találtam hibát!")
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment