Advertisement
InnaSibirova

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

Nov 2nd, 2018
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement