New: Practice Python, JavaScript & SQL with AI feedback — Try ActiveSkill free →

Day 14, Bug Fixing Exercise 3

Explanation

Line 3 was

nr_of_periods = functions.count("Trees are good. Grass is green.")

but it should be
nr_of_periods = count("Trees are good. Grass is green.")

We are importing "count" directly here using "from functions import count", so we do not need to refer to "functions" when using "count" in the code.

Recommended Course

Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.