From 6e3d6f607564c35aaf4cb7f9a322a7e936a0293d Mon Sep 17 00:00:00 2001 From: PRANESH KUMAR N <cb.en.u4cse16230@cb.students.amrita.edu> Date: Tue, 11 Dec 2018 23:21:15 +0530 Subject: [PATCH] Upload New File --- lab22.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lab22.py diff --git a/lab22.py b/lab22.py new file mode 100644 index 0000000..df44fcd --- /dev/null +++ b/lab22.py @@ -0,0 +1,6 @@ +S = input("enter the string:") +l = set() +for i in S: + if i not in l: + print(i,":",S.count(i)) + l.add(i) \ No newline at end of file -- GitLab