Advertisement
Bad_Programist

Untitled

Nov 28th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. a = 0
  2. d = 0
  3. for line in fin:
  4.     b = a
  5.     a = f.split(' ')
  6.     s = max(a, b)
  7. for line in f:
  8.     c = f.split(' ')
  9.     if len(c[0]) == s:
  10.         print(c[0])
  11.         d += 1
  12.     if d == 5:
  13.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement