I'm having trouble with my ps3, could anyone take a look at this and tell me the problem? How do I get it to "return" an answer in the module after running the program? http://dpaste.com/hold/559719/
You don't. It doesn't run your module, it imports it, and calls the functions you've defined there. If the program using your module expects the function to return something then you just need to return it.
both of those functions return something. are you using windows? IDLE?
Do you mean return as in print something to the screen? If so, you can simply call your modules and have the result printed onscreen.
I'm a moron. I misunderstood the purpose of the return function. It was running in an infinite loop because my while loop form subStringMatchExact didn't know what to do with an empty string. I fixed it. I'm using a mac though.
Join our real-time social learning platform and learn together with your friends!