String slicing

Question Q2.3.1

Slice the string s='seehemewe' to produce the following substrings:

(a) 'see'

(b) 'he'

(c) 'me'

(d) 'we'

(e) 'hem'

(f) 'meh'

(g) 'wee'


Solution Q2.3.1