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?

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
Get step-by-step solutions from verified subject matter experts
