Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

When I run my code here it states that I'm missing the assert equal function which I have. What else do I need ? Programming

When I run my code here it states that I'm missing the assert equal function which I have. What else do I need?

image text in transcribed

Programming Assignments Programming 21- Unit Tests Programming 21- Unit Tests First Last BlockPy: #21.3) Be Polite Create a function named make polite that takes in a string named message and returns it with ", please added to the end. Test the function by calling it on the following messages: "Pet the dog" and "Walk the dog". Make sure you unit test the function a suitable number of times! Console: Pet the dog, please Walk the dog, please Feedback: Algorithm Error View Trace Unused Variable The variable assert equal was given a value, but was never used after that. Evaluate Run Blocks Split Text S Reset Import datasets Upload History 1 from cisc108 import assert equal 2 def make polite (message): message += ", please" 4 return message 5 print (make polite ("Pet the dog")) 6 print(make polite ("Walk the dog"))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Privacy In Statistical Databases International Conference Psd 2022 Paris France September 21 23 2022 Proceedings Lncs 13463

Authors: Josep Domingo-Ferrer ,Maryline Laurent

1st Edition

3031139445, 978-3031139444

More Books

Students also viewed these Databases questions

Question

1. Why do we trust one type of information more than another?

Answered: 1 week ago