anonymous
  • anonymous
I can't seem for figure out how to return a list. (This is for Assignment 3 problem 2). Can someone write out the code for this?
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
def subStringMatchExact(target,key): x=1 n=0 list=[] while n
anonymous
  • anonymous
Ok, I did this. However, I can't use the list. In other words, when I ask Python to print list, I get and it just types the string. I thought the whole idea was to be able to use the returned values in the rest of the program. I can't seem to do this.
anonymous
  • anonymous
okay, maybe list wasn't the best variable to use. You need to print subStringMatchExact(target,string), not print list

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
OK, that worked. thanks.

Looking for something else?

Not the answer you are looking for? Search for more explanations.