MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / to_pascal_case

Function to_pascal_case

strings/string_switch_case.py:81–86  ·  view source on GitHub ↗

>>> to_pascal_case("one two 31235three4four") 'OneTwo31235three4four'

(text: str)

Source from the content-addressed store, hash-verified

79
80# main content
81def to_pascal_case(text: str) -> str:
82 """
83 >>> to_pascal_case("one two 31235three4four")
84 'OneTwo31235three4four'
85 """
86 return to_simple_case(text)
87
88
89def to_camel_case(text: str) -> str:

Callers

nothing calls this directly

Calls 1

to_simple_caseFunction · 0.85

Tested by

no test coverage detected