Advertisement
here2share

# string_replace.py

Feb 8th, 2015
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. # string_replace.py
  2.  
  3. string = 'Hello, Pythonic world!'
  4. newString = string.replace('o', 'X')
  5. print string
  6. print newString
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement