InnaSibirova

Антон Турчаков - Урок 1. Задание 5.

Nov 2nd, 2018
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. text = str(input())
  2. n = 0
  3. l = 0
  4. for x in text:
  5.     let = x.lower()
  6.     if 'a' <= let <= 'z':
  7.         l = l + 1
  8. print('Букв', l)
  9. for num in text:
  10.     if '0' <= num <= '9':
  11.         n = n + 1
  12. print('Цифр', n)
RAW Paste Data