Explanation
Line 4 was
print(speed(5, 300))
but it should be
print(speed(300, 5))
The order of the arguments was wrong.
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.
