diff --git a/findFirstNonRepeatingInString.py b/findFirstNonRepeatingInString.py new file mode 100644 index 0000000..ad09dab --- /dev/null +++ b/findFirstNonRepeatingInString.py @@ -0,0 +1,6 @@ +s = input("enter string: ") +dict1 = {} +for i in s: + dict1[i] = dict1.get(i, 0) + 1 + +print(dict1)