Library

QUESTION

Consider a library management system of SRM library . A student has enter the library for the first time and he want to find the row of where Data Structures for Schaums Outline is available or not.\n\nConsider the above scenario with ISSN Number of the book to find it is available there or not? ISBN number is 1111111\n

ANSWER

flag = 0
for i in range(10):
  book = input()
  issn = int(input())
  if issn == 1111111:
    flag = 1
if flag == 1:
  print('\nDatastructures book is available\n')
else:
  print('\nDatastructures book is not available\n')
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.