DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
How to convert simple string in to camel case in python
def
camelize
(
str
)
:
ans1
=
str
.
title
(
)
ans2
=
ans1
.
translate
(
{
ord
(
' '
)
:
None
}
)
return
ans2
PREVIOUS
NEXT
Tagged:
#How
#convert
#simple
#string
#camel
#case
#python
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit