diff options
Diffstat (limited to 'progs/a837.py')
-rw-r--r-- | progs/a837.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a837.py b/progs/a837.py new file mode 100644 index 0000000..38c9d68 --- /dev/null +++ b/progs/a837.py @@ -0,0 +1,3 @@ +def replace_char(str1,ch,newch):
+ str2 = str1.replace(ch, newch)
+ return str2
\ No newline at end of file |