Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def zvezdice(string):
- out = ''
- change = False
- for char in string:
- if char == '*':
- change = not change
- if change:
- out += str(char).swapcase()
- else:
- out += char
- return out
- print zvezdice('thiS is *sHiBlabal* should this *WoRk')
Add Comment
Please, Sign In to add comment