Question: Correct my code so it effectively gives me the desired output of PP 0 2 0 1 2 0 0 6 4 location = input

Correct my code so it effectively gives me the desired output of PP020120064 location = input('WWRRCCCSSSH')
warehouse = location[0:2]
room = location[2:4]
column = int(location[4:7])+2
shelf = int(location[7:10])-4
height = location[10:]
new_location = warehouse + room + str(column).zfill(3)+ str(shelf).zfill(3)+ height
print(new_location)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!