Question: The pre - written count _ dollar _ signs function is broken. It's supposed to return the number of $ characters in a given string.

The pre-written count_dollar_signs function is broken. It's supposed to return the number of $ characters in a given string. For example: count_dollar_signs("$uper $ize") should return 2. But for some reason, the function always returns either 0 or 1. What's going on?

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!