import requests
from bs4 import BeautifulSoup
def spider(maxalphabet):
alpha = 'A'
while ord(alpha) <= ord(maxalphabet):
url = 'http://djpunjab.us/m/page/punjabimusic/'
source_code = requests.get(url)
plaintext = source_code.text
soup = BeautifulSoup(plaintext)
for link in soup.findAll('a'):
href = link.get('href')
print(href)
ord(alpha) += 1 # line no.14
spider('A')
why it is showing error on line 14