Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # continue.py
- word = "Pythxn Demo"
- string = ""
- for ch in word:
- if ch == 'x':
- string +='o'
- continue
- if ch == ' ':
- break
- string += ch
- print string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement