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

Python Institute Exam PCAP-31-03 Topic 5 Question 47 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 47
Topic #: 5
[All PCAP-31-03 Questions]

Assuming that String is six or more letters long, the following slice

String[1:-2]

is shorter than the original string by:

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Emmett
1 days ago
I believe the answer is B) three chars.
upvoted 0 times
...
Annice
1 days ago
Okay, so we're slicing off the first and last two characters. That's gotta be four characters in total, right? I'm going with A) four chars.
upvoted 0 times
...
Izetta
4 days ago
Hmm, let me think about this. If String is six or more letters long, then the slice 'String[1:-2]' will exclude the first and last two characters, right? Sounds like it should be shorter by two chars.
upvoted 0 times
...
Lavonda
4 days ago
I think the answer is A) four chars.
upvoted 0 times
...
Rory
6 days ago
Hmm, that's interesting. Can you explain why you think it's two chars?
upvoted 0 times
...
Britt
8 days ago
I disagree, I believe the answer is D) two chars.
upvoted 0 times
...
Rory
15 days ago
I think the answer is B) three chars.
upvoted 0 times
...

Save Cancel