I am trying to use .pop to check the pangram and have the following code but get the error "'str' object has no attribute 'pop'". I am new to programming. Please help.
import string
def ispangram(str1, alphabet=string.ascii_lowercase):
for x in str1:
if x in alphabet:
alphabet.pop[0]
else:
pass
return len(alphabet)==0