from itertools import dropwhile, takewhile
return not line.startswith("-- Advanced")
return not line.startswith("-- num")
with open("sample.txt") as lines:
lines = takewhile(not_advanced, dropwhile(not_num, lines))
for line in lines:
i am trying to create a library management system which is supposed to be used to store/keep infp for the library and the library members( book title, author, name and picture for borrower and other stuffs). The app has 6 buttons, delete, save, add,previsous,next, and upload( for upload ...