Question: Create a new file called conditions. py. If you're using the template, get rid of the turtle.getscreen().exitonclick() line. Some functions print, some return-read carefully! Implement

Create a new file called conditions. py. If you're using the template, get rid of the turtle.getscreen().exitonclick() line. Some functions print, some return-read carefully! Implement these 10 functions (10 points each): 1.) This function takes a bit of preparation first. Try entering the following in a shell: len ('mumps') len('Yellow-bellied Sapsucker) len('') phrase 'That is silly! length-len(phrase) print(length) Using what you just learned about the len function, write a function called word_length that has two parameters. The first will be a string and the second will be an integer. The function prints a message about the relationship between the length of the word and the integer, as shown in the following examples. Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green) word length ('liversnaps',7) Longer than 7 characters: liversnaps word length('earwax', 5) Longer than 5 characters: earwax word length'chickenfat',10) Exactly 10 characters: chickenfat word length ('Gross!, 13) Shorter than 13 characters: Gross
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
