Back Clear
# Your Problem: # We have a number of bunnies and each bunny has two big floppy ears. We want # to compute the total number of ears across all the bunnies recursively # (without loops or multiplication). # # # bunnyEars(0) → 0 # bunnyEars(1) → 2 # bunnyEars(2) → 4 # # Credit for this problem goes to Nick Parlante from CodingBat.com # Do not modify anything outside of the function or the function itself. # CODE START def getBunnyEars(n:int) -> int: # CODE END # Press Ctrl+E (Command+E on mac) to test your code