Skip to content

Commit

Permalink
send sms and count_chars_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshlinux committed Apr 15, 2018
1 parent 1dc2488 commit ae73255
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions count_chars_dict.py
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion send_sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" )

0 comments on commit ae73255

Please sign in to comment.