Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. word = input()
  3. minLengh = len(word)
  4. maxLengh = len(word)
  5. minWord = word
  6. maxWord = word
  7. newWord = ''
  8. while True:
  9. if word != 'стоп':
  10. newWord = input()
  11. if newWord != 'стоп':
  12. if len(newWord) < minLengh:
  13. minLengh = len(newWord)
  14. minWord = newWord
  15. elif len(newWord) > maxLengh:
  16. maxLengh = len(newWord)
  17. maxWord = newWord
  18. else:
  19. break
  20. ok = True
  21. letternum = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement