Question: What's wrong with my Python code? ef is_exclamation (sentence: str) > bool: Return True when the value ends with a '!' symbol. >>> is_exclamation

What's wrong with my Python code?

What's wrong with my Python code? ef is_exclamation (sentence: str) > bool:

ef is_exclamation (sentence: str) > bool: """ Return True when the value ends with a '!' symbol. >>> is_exclamation (I love it!) True >>> is_exclamation (I hate it.) False """ if is_exclamation[-1] == '!': return True else: return False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!