← Back to challenges

Burrrrrrrp

PythonMediummathstrings

Instructions

Create a function that returns the string "Burp" with the amount of "r's" determined by the input parameters of the function.

Examples

long_burp(3) ➞ "Burrrp"

long_burp(5) ➞ "Burrrrrp"

long_burp(9) ➞ "Burrrrrrrrrp"

Notes

  • Expect num to always be >= 1.
  • Remember to use a capital "B".
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Buggy Code (Part 6)