GIAC
GPYC · Question #2
What are the contents of the variable x when the following is executed in a Python interactive session? x = "So you want a GIAC Certification?" x.split()[0][1] print(x)
The correct answer is C. 'So you want a GIAC Certification?'. You've hit your limit · resets 1pm (America/New_York)
Python Fundamentals & Command Line Tools
Question
What are the contents of the variable x when the following is executed in a Python interactive session?
x = "So you want a GIAC Certification?"
x.split()[0][1]
print(x)
Options
- A'So'
- B'So you'
- C'So you want a GIAC Certification?'
- D'So', 'you'
How the community answered
(21 responses)- B5% (1)
- C95% (20)
Explanation
You've hit your limit · resets 1pm (America/New_York)
Topics
#string immutability#string methods#split#print
Community Discussion
No community discussion yet for this question.