Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GIAC Exam GPYC Topic 4 Question 69 Discussion

Actual exam question for GIAC's GPYC exam
Question #: 69
Topic #: 4
[All GPYC Questions]

Which of the following import statements will add the ability to parse data with regular expressions to your script?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Dominque
3 days ago
Hmm, I was leaning towards A) from regex import re, but now I'm not so sure. I'll have to double-check the Python documentation on this one.
upvoted 0 times
...
Cassie
8 days ago
I'm not sure, but I think A) from regex import re might also work since it explicitly imports the 're' module from the 'regex' package.
upvoted 0 times
...
Dottie
9 days ago
I'm almost certain that the correct answer is B) import re. Regular expressions are a core part of Python, so this is the way to access them in your script.
upvoted 0 times
...
Fannie
13 days ago
I agree with Barb, because 'import re' is the standard way to import the regular expression module.
upvoted 0 times
...
Barb
16 days ago
I think the answer is B) import re.
upvoted 0 times
...

Save Cancel