File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ ss = sorted(ss.items()) # returns as a tuple list
8383for i in ss:
8484 print (" %s :%d " % (i[0 ],i[1 ]))
8585```
86+ ** OR**
87+ ``` python
88+ from pprint import pprint
89+ p= input ().split()
90+ pprint({i:p.count(i) for i in p})
91+ ```
8692---------------
8793
8894# Question 23
@@ -218,4 +224,4 @@ print("%s name is %s"%(Car.name,toyota.name))
218224
219225[ *** go to next day*** ] ( https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/blob/master/Status/Day%209.md " Day 9 ")
220226
221- [ *** Discussion*** ] ( https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/issues/3 )
227+ [ *** Discussion*** ] ( https://github.com/darkprinx/100-plus-Python-programming-exercises-extended/issues/3 )
You can’t perform that action at this time.
0 commit comments