index
:
clp
main
A small Python compiler with optimizer written in Java
dcariotti
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
progs
/
a837.py
blob: 38c9d6817350e18b8a9ca114564dfb0e9d92e786 (
plain
)
1
2
3
def
replace_char
(
str1
,
ch
,
newch
):
str2
=
str1
.
replace
(
ch
,
newch
)
return
str2