Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Siu, Pui Chung
codewar solutions
Commits
b9c1ffc1
Commit
b9c1ffc1
authored
Jul 21, 2021
by
Siu, Pui Chung
Browse files
Add new file
parent
1ec0f302
Changes
1
Hide whitespace changes
Inline
Side-by-side
create_phone_number.py
0 → 100644
View file @
b9c1ffc1
def
create_phone_number
(
n
):
str_list
=
[
str
(
i
)
for
i
in
n
]
str_list
.
insert
(
0
,
"("
)
str_list
.
insert
(
4
,
") "
)
str_list
.
insert
(
8
,
"-"
)
return
""
.
join
(
str_list
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment