Python Forum
Need to upgrade this code.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need to upgrade this code.
#3
If I understand correctly -
1. Create a class and move your shrink routine to that.
2. Change the shrink routine to record the location of each removed letter.
3. Create a function, expand, that puts the spaces into the string.
4. You will need to have the list that holds the removed positions as a class variable, and would have the result strings as class variables.
Reply


Messages In This Thread
Need to upgrade this code. - by valentino1337 - Feb-19-2024, 04:08 PM
RE: Need to upgrade this code. - by deanhystad - Feb-19-2024, 08:05 PM
RE: Need to upgrade this code. - by jefsummers - Feb-28-2024, 07:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Coding upgrade MoreMoney 4 611 Mar-22-2024, 04:30 PM
Last Post: MoreMoney

Forum Jump:

User Panel Messages

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