diff --git a/CSE16261_Ex02_02.py b/CSE16261_Ex02_02.py new file mode 100644 index 0000000000000000000000000000000000000000..d2441c6297fc305ffb5235829dc837133c09a59b --- /dev/null +++ b/CSE16261_Ex02_02.py @@ -0,0 +1,8 @@ +dict1={} +s=input("Enter the string:") +for i in s: + if i in dict1 : + dict1[i]+=1 + else: + dict1[i]=1 +print(dict1)