From 8321fe1d8ba50616d0c527a9e26ca2314d02ef10 Mon Sep 17 00:00:00 2001 From: Vivin Balaji K S <cb.en.u4cse16265@cb.students.amrita.edu> Date: Wed, 12 Dec 2018 10:21:20 +0530 Subject: [PATCH] Upload New File --- CSE16265_ExNo02_02.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 CSE16265_ExNo02_02.py diff --git a/CSE16265_ExNo02_02.py b/CSE16265_ExNo02_02.py new file mode 100644 index 0000000..506a915 --- /dev/null +++ b/CSE16265_ExNo02_02.py @@ -0,0 +1,9 @@ +a=input("Enter the string") +print(a) +mylist=[] +for b in a: + if b not in mylist: + mylist.append(c) +for c in mylist: + print(b," ",a.count(b),end=' ') +print() -- GitLab