Thread: Python Word manipulation
hi folks. little problem stumping me. want to:
now... adding things can do, i'm not how split string single letters can do...nasty thingscode:def alter(take_old_word): #somehow change bird ...ex: 32ab return the_new_word old_word = "bird" new_word = alter(myword)
you can iterate on each character this:
code:my_str = "bird" c in my_str: print c
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Python Word manipulation
Ubuntu
Comments
Post a Comment