Advertisement
Korotkodul

ударения

May 17th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. ra = []
  2. ask = []
  3. while True:
  4.     s = input().split()[0]
  5.     s = s.split(',')[0]
  6.    
  7.            
  8.     t = s.lower()
  9.     for i in range(len(t)):
  10.         if t[i] == 'ё':
  11.             t = t[:i] + 'е' + t[i+1:]
  12.     #print(s,t)
  13.     ra.append(s)
  14.     ask.append(t)
  15.     if s == 'stop':
  16.         break
  17.  
  18. wa = []
  19.  
  20. for i in range(len(ask)):
  21.     print(ask[i])
  22.     s = input()
  23.     if s == 'не':
  24.         continue
  25.     if s != ra[i]:
  26.         wa.append( (ra[i], s))
  27.    
  28.  
  29. for i in wa:
  30.     print (i)
  31.  
  32.  
  33. print(wa)
  34.    
  35.  
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement