← Back to challenges

InnoaaaaaKod

PythonMediumformattingstringsloops

Instructions

Write a function that takes an integer and returns a string with the given number of "a"s in InnoKod.

Examples

how_many_times(5) ➞ "InnoaaaaaKod"

how_many_times(0) ➞ "InnoKod"

how_many_times(12) ➞ "InnoaaaaaaaaaaaaKod"

Notes

  • The string must start with "Inno" and end with "Kod".
  • You'll only be given integers as test input.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.