From 5ea69d0956f1417cc61a7061ab00378cde58d189 Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:14:35 -0500 Subject: [PATCH] Upload 4.14 --- 4/4.14 LAB/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 4/4.14 LAB/main.py diff --git a/4/4.14 LAB/main.py b/4/4.14 LAB/main.py new file mode 100644 index 0000000..1176b21 --- /dev/null +++ b/4/4.14 LAB/main.py @@ -0,0 +1,10 @@ +user_text = input() + +def count_letters(string): + result = 0; + for letter in list(string): + if letter.isalpha(): + result += 1 + return(result) + +print(count_letters(user_text))