S
S
Socrates2018-03-15 19:29:46
Django
Socrates, 2018-03-15 19:29:46

Convert character after hyphen to upper case?

Guys, do not tell me how to solve this issue.
There are links, following them the regular program processes them, view accepts and passes them to the template.
those. there is a link a hrefSt. Petersburg /a
by clicking on it, we get to the page where St. Petersburg is displayed
how to use python to convert the first and the character after the hyphen to uppercase?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
javedimka, 2018-03-15
@Karmov69

I won't follow the link, of course, but:
'санкт-петербург'.title()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question