How to compare individual characters in two strings in Python 3

Use zip:

def compare(a, b):
    for x, y in zip(a, b):
        if x == y:
            ...

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)