logo CodeStepByStep logo

has_pennies

Language/Type: Python boolean logic %

Using "Boolean Zen," write an improved version of the following function, which returns whether the given number of cents would require any pennies (as opposed to being an amount that could be made exactly using coins other than pennies).

Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.