Advertisement
here2share

# continue.py

Nov 1st, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # continue.py
  2.  
  3. word = "Pythxn Demo"
  4. string = ""
  5. for ch in word:
  6.     if ch == 'x':
  7.         string +='o'
  8.         continue
  9.     if ch == ' ':
  10.         break
  11.     string += ch
  12. print string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement