Jak sprawdzić, czy wszystkie znaki w ciągu to ten sam Python
s == len(s) * s[0]
Yucky Yacare
s == len(s) * s[0]
s = "dddd"
if all([x == s[0] for x in s]):
print("All the characters are same")