Day 12, Bug Fixing Exercise 1

Explanation

Line 4 was

print(speed([200, 4]))

but it should be

print(speed(200, 4))

We remove the square brackets around 200, 4 here because the function expects two numbers as arguments, not a list.


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.