Test your Python knowledge 🐍


🤔 Write a function that does what the question asks.

📑 Define variables with what is in Function input part of the question.

🧐 Run your function with the those variables and copy/paste its output in the answer box.

😎 If your answer is correct, you will see a button to go to the next level.

step

Question # 1

Write a function that receives variablesa and b. It counts the number of times string ahappens inside b string. It should NOT be case sensitive.

For example, if a='hello Henry' and b='he'. Then the function returns 2.

Function input

a='Ingots of gold are shining and they look amazing!'

b='ing'

Copy and paste the output of your function here.