"""What slice would remove the first and last characters from a string s?"""
s = "Principles of Computing"
print(s[1:len(s)-1])

"""What index would access the middle character from a string s?
(You can assume it has odd length)."""
s = "ready"
print(s[len(s)//2])

"""What expression would produce a 'doubled' version of a string s;
for example, the string "coding" would become "codcodinging"?"""
s = "coding"
print(s[:len(s)//2] + s + s[len(s)//2:])
