• Home
  • Textbooks
  • The Practice of Computing Using Python
  • Testing

The Practice of Computing Using Python

William F. Punch, Richard Enbody

Chapter 16

Testing - all with Video Answers

Educators


Chapter Questions

01:05

Problem 1

The find_most_efficient function is not implemented. Implement it as indicated in the comments.

Victor Salazar
Victor Salazar
Numerade Educator

Problem 2

Refactor your find_most_efficient function to use comprehension. Did the change make your function more readable?

Check back soon!

Problem 3

Having written the find_most_efficient function, add tests for that function using the doctest approach discussed in the chapter.

Check back soon!

Problem 4

In the chapter Lists and Tuples, an anagram function was developed. Add tests using the doctest approach of this chapter.

Check back soon!

Problem 5

Multiple exercises developed a multi_find function. Add tests using the doctest approach of this chapter.

Check back soon!

Problem 6

In the chapter Dictionaries and Sets, the example counted words in the Getrysburg Address. Add tests using the doctest approach of this chapter.

Check back soon!

Problem 7

Choose a function that you have written and add tests using the doctest approach of this chapter.

Check back soon!