Skip to content
Snippets Groups Projects
Commit a0583d6c authored by Pravesh's avatar Pravesh
Browse files

lab2

parent d683e384
Branches
No related tags found
No related merge requests found
String str1=input("Enter a string")
dict = {}
for n in str1:
keys = dict.keys()
if n in keys:
dict[n] += 1
else:
dict[n] = 1
print(dict)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment