I have test all the code and got the expected output but while running the exercise 8 code , its shows error frequently.
Kindly help me this matter.
@Satya
Both the errors in your log are NameError which means you didn’t run the cell where these methods/functions have been defined. Run the cells where these functions are defined and it will solve the error.