for problem set 3, how do refresh the tuple inside the function if you use the function more than once?

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.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

for problem set 3, how do refresh the tuple inside the function if you use the function more than once?

MIT 6.00 Intro Computer Science (OCW)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

Not sure what you mean by your question. A tuple doesn't get refreshed. Do you want to start the tuple from scratch again and rerun the function? You can just redeclare the tuple as an empty tuple before you run the function on it again.
if you are passing a tuple to a function - pass an empty tuple if the tuple is created 'inside' the function it shouldn't need to be refreshed http://pastebin.com/uA9wua4L
thx guys, I guess my question wasn't really clear. what i meant was, my function subStringMatchExact returns a tuple z(), in which I add the starting points of "key" in "target". However, if i use the function more than once, the values returned from the different uses gets stacked together. so i was wondering how would I solve this problem. thx a lot

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

hmm, it might be easier if you posted your code - using dpaste.com or codepad.com or pastebin.com ....... if you have a variable that points to a tuple and at some point you want the variable to point to an empty tuple then just reassign the variable to an empty tuple: http://pastebin.com/5KCwKqhd

Not the answer you are looking for?

Search for more explanations.

Ask your own question