I have tried to solve this code coach problem of Deja vu in python. Correct me with my code.
https://www.sololearn.com/coach/54?ref=app You aren't paying attention and you accidentally type a bunch of random letters on your keyboard. You want to know if you ever typed the same letter twice, or if they are all unique letters. Task: If you are given a string of random letters, your task is to evaluate whether any letter is repeated in the string or if you only hit unique keys while you typing. Input Format: A string of random letter characters (no numbers or other buttons were pressed). # code goes from here strng = input() count = {} for i in strng: if i in count: count[i] += 1 else: count[i] = 1 for s in count: if count[s] == 1: print ("Unique") elif count[s] > 1: print ("Deja Vu") break