Closed ahaidri closed 2 years ago
When running the function in example 3 (located in "defining functions" heading) a NameError message is received that num_one is not defined.
I removed num_one and num_two from the print message so it only prints the_sum, and the sum came through without problem.
Yes, the code as written produces an error because the num_one and num_two are specifically encapsulated within the function as parameters. There is also a note explaining the issue within the Lesson.
When running the function in example 3 (located in "defining functions" heading) a NameError message is received that num_one is not defined.
I removed num_one and num_two from the print message so it only prints the_sum, and the sum came through without problem.