Set .symmetric_difference() Operation

  • + 1 comment

    Well then all you would need to do is .replace() any of your special chars with nothing. See my edited solution, I removed all spaces.

    from collections import Counter
    print("pangram" if len(Counter(input().lower().replace(' ',''))) == 26 else "not pangram")