compared two strings inside the if statement and used " and " operator then compared two integers.
if( issue == bk[i].name and bk[i].quan !=0 ):
print " book is available"
I get this error
Traceback (most recent call last):
File "C:\Users\DCC PCMC\Desktop\CSE\python projects\DSA project\lib_class.py", line 141, in <module>
if( issue == bk[i].name and bk[i].quan !=0 ):
AttributeError: 'int' object has no attribute 'name'
bk[i]isintyour sequenceb. I guess It should be some book object in your listbyou have overwritten in your code beforeifstatement: Add more code here. or your assignment is wrong. I thinkbk[i].nameshould be assigned inbk[i].quan