From ae73255f24a830640588bebc4bb99951c94d113f Mon Sep 17 00:00:00 2001 From: rakesh kumar Date: Sun, 15 Apr 2018 22:50:36 +0530 Subject: [PATCH] send sms and count_chars_dict --- count_chars_dict.py | 8 ++++++++ send_sms.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 count_chars_dict.py diff --git a/count_chars_dict.py b/count_chars_dict.py new file mode 100644 index 0000000..748cfa8 --- /dev/null +++ b/count_chars_dict.py @@ -0,0 +1,8 @@ +message = 'It was a bright cold day in April, and the clocks were striking thirteen.' +count = {} + +for character in message: + count.setdefault(character, 0) + count[character] = count[character] + 1 + +print(count) \ No newline at end of file diff --git a/send_sms.py b/send_sms.py index 460898f..5f88db0 100644 --- a/send_sms.py +++ b/send_sms.py @@ -6,6 +6,6 @@ client = Client(account_sid, auth_token) client.messages.create( - to="+919871816901", + to="919871816901", from_="09871816901", body="This sms is received via python script" ) \ No newline at end of file