Harshit B.

asked • 03/06/20

Given a string S = " CARPE DIEM". If n is length/2 (length is the length of the given string), then what would following return?

(a) S[: n]

(b) S[n :]

(c) S[n : n]

(d) S[1 : n]

(e) S[n : length - 1]

1 Expert Answer

By:

Zachary T. answered • 03/06/20

Tutor
5 (1)

Computer Programming Course Development Assistant, Berklee College

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.