beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Excited Strings

ben@rigeltechnical.com // 1.0

Let's call a string excited if it contains more exclamation points than periods. For example, "Great work!" is excited but "I see. OK!" is not. Write a function called excited that takes one str and returns whether that string is excited.