Python Forum
Scramble and Interleave in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scramble and Interleave in Python
#6
Yes, part of the exercise is that I have to use recursion. I left the first part of the code out- the first part of the code adds "." to any word that doesn't have a length that is a power of 2 to make it a power of 2 (ie. a word that is 12 characters long would be changed to one that is 16 characters long). I left this part of the description and code out to simplify my question but some of the words I tested are much longer than 8 characters and it seems to work.
Reply


Messages In This Thread
Scramble and Interleave in Python - by dsaks - Jun-12-2018, 05:07 PM
RE: Scramble and Interleave in Python - by woooee - Jun-12-2018, 05:40 PM
RE: Scramble and Interleave in Python - by dsaks - Jun-13-2018, 02:03 AM
RE: Scramble and Interleave in Python - by dsaks - Jun-13-2018, 03:08 AM
RE: Scramble and Interleave in Python - by woooee - Jun-13-2018, 06:04 PM
RE: Scramble and Interleave in Python - by dsaks - Jun-13-2018, 10:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Scramble word game Zatoichi 9 8,637 Sep-20-2021, 03:47 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020