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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started