← Back to challenges

Amazing Innokodakademija!

PythonMediumstringsvalidationregex

Instructions

Create a function that takes a string and changes the word amazing to not amazing. Return the string without any change if the word innokodakademija is part of the string.

Examples

amazing_innokodakademija("innokodakademija is amazing.") ➞ "innokodakademija is amazing."

amazing_innokodakademija("Mubashir is amazing.") ➞ "Mubashir is not amazing."

amazing_innokodakademija("Infinity is amazing.") ➞ "Infinity is not amazing."

Notes

Innokodakademija is amazing :)

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.