Question: python 3.xx We need to remove the .PDF extension at the end of the name, and the name should be in upper- and lowercase with

python 3.xx

We need to remove the .PDF extension at the end of the name, and the name should be in upper- and lowercase with the first letter of each word capitalized (that is, use title()

SubdivisionName = [LAKEWOOD TOWNHOMES.PDF MOBILE HOME PARK.PDF MORRISDALE ESTATES.PDF TOWNE CROSSING.PDF VINYARD CHURCH.PDF]

here's what we are working with we need this code to be modified to work

def FindLabel ([SubdivisionName] ):

subName = (SubdivisionName)

subNameList = subName.rsplit(.,PDF)

subLName = subNameList[0]

subFName = subNameList[1]

formattedFullName = subFName + " " + subLName

formattedFullSubdTitle = formattedFullName.title()

return formattedFullSubdTitle

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!