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

Day 14, Bug Fixing Exercise 1

Explanation

Line 2 of main.py was

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

but it should be
nr_of_periods = functions.count("Trees are good. Grass is green.")
We refer to the functions module to access the count function defined in functions.py.

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.