GPYC Exam QuestionsBrowse all questions from this exam

GPYC Exam - Question 3


Which of the following commands would correct the error in the screenshot?

Show Answer
Correct Answer: A

The error in the screenshot indicates that the name 'itertools' is not defined. This means that the itertools module has not been imported into the current namespace. To fix this, you need to import the itertools module at the beginning of your script using the command 'import itertools'. Therefore, option A is the correct choice.

Discussion

1 comment
Sign in to comment
VenudharOption: A
Nov 18, 2023

The option is A