Courses‎ > ‎Intro to CS - Full Year‎ > ‎Spring‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

Work 35: 5/7

posted May 7, 2019, 10:53 AM by JonAlf Dyrland-Weaver
Modify your madly program from yesterday to use split and join.
  • When you read in the text file, use .split() to create a list
  • Use that list to replace words (this should be a simpler operation than before)
  • When the main loop of your and libs replacement his done, you should have a list containing all the words of the original text with the placeholder words replaced.
  • Use .join() to create a single string based on the list.
Update your submission to mardlibs with this new version.