A shopping centre has four blocks (buildings) labelled A, B, C and…

Question Answered step-by-step A shopping centre has four blocks (buildings) labelled A, B, C and… A shopping centre has four blocks (buildings) labelled A, B, C and D. All four blocks have six (6) levels. Each shop in the shopping centre is assigned a number in the format B315 where B is block number, 3 is the level number and 15 is the shop-identifier on that level.A. rite a program to validate the shop number according to above scheme. Suppose the input value is stored in a variable shopNumber. Your program should analyze that variable and output a simple True or False for validity.Following rules should be checked: (6 marks)There should be exactly four characters.First character should be a valid block in upper case, A to D.Second character should be a valid level number, 1 to 6.Last two characters can fall in the range 01, 02, 03, ….., 99. No shop can have 00 identifier.B. Write test data for the above shop-number-validator program. Create four distinct cases. Provide test data in the following format: (4 marks)Test-data1, expected-output1, reason-for-selection1Test-data2, expected-output2, reason-for-selection2 Computer Science Engineering & Technology Python Programming Share QuestionEmailCopy link Comments (0)