Question: 
Write a python function to check whether all the characters are same or not.


Model's Code:
def all_Characters_Same(s):
    return all(c == s[0] for c in s) if s else True



Sample Correct Code:
def all_Characters_Same(s) :
    n = len(s)
    for i in range(1,n) :
        if s[i] != s[0] :
            return False
    return True


Asserts:
assert all_Characters_Same("python") == False
assert all_Characters_Same("aaa") == True
assert all_Characters_Same("data") == False


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 741 of 974: 562/741 (75.84345479082322%): success