Arcpy Capitalize 5th word

المشرف العام

Administrator
طاقم الإدارة
I understand how to capitalize first word using !CITY_NAME!.capitalize(). However, if I have a string in a record and I want to capitalize the fifth word, what is the code for that?

Ex:

3 Boundary in fifth column

How do I capitalize column?

I can use:

'column'.replace('c','C')

but is there a way to call the capitalize function and not replace to do it?



أكثر...
 
أعلى