Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # with open("hello.txt", "w") as file:
- # file.write("hello world")
- list = [ 'b', 'в', 'г', 'ґ', 'д', 'ж', 'з', 'й', 'к', 'л', 'м', 'н', 'п', 'р', 'с', 'т', 'ф', 'х', 'ц', 'ч', 'ш', 'щ' ]
- l = []
- with open("input.txt", "r") as file:
- # for line in file:
- temp = file.readlines()
- for i in temp:
- l = i.split(' ')
- count = 0
- for i in l:
- # print(i)
- for j in range(0, len(i)):
- # print(i[j])
- if i[j] == list[0]:
- count+=1
- else:
- count = 0
- if count >= 2:
- continue
- index = l.index('bbbo')
- print(index)
- # for i in l:
- # print(i)
Advertisement
Add Comment
Please, Sign In to add comment