R

Do this!

Type this tester code, together with your function, into IDLE. Be sure to put the function near the top of you file, so that this tester code appears after it.

Make sure the tester code and your function are entered into IDLE and saved to a file as a new program. Press F5 to test your function.

Enter an existing surfer ID and the program displays the details.

Enter an existing surfer ID and the program displays the details.

Enter a nonexistent ID and the

Program displays nothing (as there's — nothing to display).

Enter a nonexistent ID and the

Program displays nothing (as there's — nothing to display).

Great work! Your function is working well. Wonder how the RSA folks feel about it?

surfing success

Was this article helpful?

0 0

Post a comment