1.
Solution.
‘Python’[1] = ‘y’ ‘Strings are sequences of characters.’[5] = ‘g’ len(‘wonderful’) = 9 ‘Mystery’[:4] = ‘Myst’ ‘p’ in ‘Pineapple’ = True ‘apple’ in ‘Pineapple’ = True ‘pear’ not in ‘Pineapple’ = True ‘apple’ > ‘pineapple’ = False ‘pineapple’ < ‘Peach’ = False
- ‘Python’[1] = ‘y’
- ‘Strings are sequences of characters.’[5] = ‘g’
- len(‘wonderful’) = 9
- ‘Mystery’[:4] = ‘Myst’
- ‘p’ in ‘Pineapple’ = True
- ‘apple’ in ‘Pineapple’ = True
- ‘pear’ not in ‘Pineapple’ = True
- ‘apple’ > ‘pineapple’ = False
- ‘pineapple’ < ‘Peach’ = False