How to fix error: Incompatible types in assignment in Python | DevErrors