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

To access solutions, please obtain an access code from Cambridge University Press at the Lecturer Resources page for my book (registration required) and then sign up to scipython.com providing this code.